Skip to content

Provide a way to specify no-build-isolation for all pypi dependencies #3427

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

Open
traversaro opened this issue Mar 25, 2025 · 6 comments
Open
Assignees
Labels
🐍 pypi Issue related to PyPI dependencies 👋 good first issue Good for newcomers

Comments

@traversaro
Copy link
Contributor

Problem description

Events like pypa/setuptools#4910 highlight that many users are not familiar with how build-isolation works when building Python projects, and how the python build backends (like setuptools) are not pinned in any way in the lock file.

For this reason, it may be convenient to have an option to opt out of build isolation for all pypi dependencies, with the additional burden that in that case you need to manually add to the manifest all the build backends you want to use (but with the advantage that in that case the build backends used are included in the lockfile).

Copy link
Contributor

Maybe we can allow setting the no-build-isolation to false to disable build isolation for all dependencies? @tdejager

@tdejager
Copy link
Contributor

Sure, but in that case is should be set to true. :)

@tdejager
Copy link
Contributor

And definitely possible, we just have to expose it, pretty simple I'll add the good first issue label as well.

@tdejager tdejager added 👋 good first issue Good for newcomers 🐍 pypi Issue related to PyPI dependencies labels Mar 25, 2025
@traversaro
Copy link
Contributor Author

Sure, but in that case is should be set to true. :)

I totally agree with the proposal, even if technically true is a valid Python project name (see https://packaging.python.org/en/latest/specifications/name-normalization/#name-format)?

Copy link
Contributor

Fortunately, TOML makes a distinction between strings and booleans. 🙂 Also normally no-build-isolation is an array, so it should be easy to distinguish.

@traversaro
Copy link
Contributor Author

x-ref an interesting discussion on setuptools side that highlights some problems that this issue would mitigate: pypa/setuptools#4919 .

@baszalmstra baszalmstra added the pixi label Mar 27, 2025 — with Linear
@baszalmstra baszalmstra removed the pixi label Apr 1, 2025
@tdejager tdejager self-assigned this Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐍 pypi Issue related to PyPI dependencies 👋 good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants