-
Notifications
You must be signed in to change notification settings - Fork 3k
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
pip download: make sure that --use-pep517 is propagated to the dependencies #11022
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes the behaviour consistent across download
, install
, and wheel
.
4ef5f44
to
d5df734
Compare
I realized that I could make the test run without network access, so I did that. |
d5df734
to
e3be557
Compare
1535e42
to
539a394
Compare
My previous approach to testing stopped working because of #10717, so I changed the test to use a different approach. |
The approach it uses now doesn't work anymore due to 452d7da. The installation of `fake_dep` now succeeds whether or not `setuptools` is installed in the test environment. Use a different approach instead: try to import `pip` in the `setup.py` script. If it succeeds, then we are not running in an isolated environment, and therefore PEP 517 isn't being used. To add this custom logic to `setup.py`, add a new argument to `create_basic_sdist_for_package`. Note that to make this work, I had to switch from f-strings to `str.format`, since the `dedent` has to happen before formatting.
539a394
to
28d7730
Compare
Rebased to fix conflicts. |
Thank you @SpecLad ! |
Fixes #9523