-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Passing --use-pep517 doesn't apply to build requirements #10739
Comments
Oh! It is possible to cause PEP 517 to be used by using the environment variable:
|
@pradyunsg and @jaraco I'm having a related problem to use pip with pyproject.toml. In my case I need to run: The problem happens because pip runs build-system via subprocess.
Therefore, any of the pip/src/pip/_internal/build_env.py Lines 263 to 269 in b73b128
I would suggest including some environment-related option to extra_environ: pip/src/pip/_internal/build_env.py Line 262 in b73b128
The only problem though. It seems there is no clean way to access I'm not sure what would be the best way to proceed here. Another possible solution is to use pip/src/pip/_internal/commands/install.py Lines 339 to 341 in b73b128
|
Description
Attempting to install a package that has unbuilt dependencies with an implicit dependency on setuptools fails when installing under PEP 517.
Because
semver<2.7.3,>=2.2.1
has an implicit dependency on Setuptools but because Setuptools isn't installed, the build fails. In other situations, passing--use-pep517
allows for pip to install setuptools as a fallback dependency for packages that don't declare it.Expected behavior
If the install is indicating
--use-pep517
, then perhaps that option should be used when installing the build dependencies as well. Or alternatively maybe there should be another option that indicates to use pep517 to install dependencies for pep518 build dependencies.pip version
21.3.1
Python version
3.10.0
OS
macOS 12
How to Reproduce
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: