Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4d88472 results in run dependencies being required at build time #13411

Open
sthen opened this issue Mar 5, 2025 · 2 comments
Open

4d88472 results in run dependencies being required at build time #13411

sthen opened this issue Mar 5, 2025 · 2 comments
Labels

Comments

@sthen
Copy link

sthen commented Mar 5, 2025

Describe the bug

Not sure if this was intentional, but it wasn't mentioned in the commit log so I'm assuming not; after 4d88472, sphinx's run dependencies (requests, Pygments docutils, etc) become required at build time and flit-core reports them as missing if not present.

How to Reproduce

Attempt to build sphinx with runtime deps not installed.

Environment Information

Platform:              openbsd7; (OpenBSD-7.6-amd64-64bit-ELF)
Python version:        3.12.9 (main, Feb 28 2025, 13:08:05) [Clang 16.0.6])
Python implementation: CPython
Sphinx version:        8.2.3
Docutils version:      0.21.2
Jinja2 version:        3.1.5
Pygments version:      2.19.1

Sphinx extensions

Additional context

No response

@sthen sthen added the type:bug label Mar 5, 2025
@AA-Turner
Copy link
Member

Can you provide logs? There was a bug in Flit (pypa/flit#728; fixed but unreleased), but the fallback to pathlib doesn't require any dependencies.

A

@sthen
Copy link
Author

sthen commented Mar 5, 2025

Building with that Flit patch applied avoids the problem. Without, it looked like this:

* Getting build dependencies for wheel...
ERROR Missing dependencies:
        requests>=2.30.0
        Pygments>=2.17
        docutils<0.22,>=0.20
(etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants