-
-
Notifications
You must be signed in to change notification settings - Fork 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
Favor the "venv" sysconfig install scheme over the default and distutils scheme #2209
Conversation
f83c61d
to
4cf0aab
Compare
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.
@hroncok so what's next here?
I was giving https://bugs.python.org/issue45413 some time to sink in. Will finish this either way next week. |
5824c97
to
52e2328
Compare
I wonder where to document this permanently. It seems like a bit too implementation-wise thing to put into user_guide.rst. Other than that, this PR is ready for review. I've rebased it and added 2 fixup-like commits separately on top for easier review, with the intention to squash. |
I do not understand the codedecov failure, it seems that all added code is covered with tests, but the overall coverage has decreased 😕 |
Me neither, codecov is very flaky 😆 But ignore that. |
0218c8c
to
fa93ca7
Compare
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.
I'd prefer if you'd define it as a unicode and then decode it on python 2 as a dict comprehension would make the intent clearer and they you could document why it's needed.
Otherwise looks good.
fa93ca7
to
e227ba9
Compare
You'll need to please the PyPy interpreter too 😊 |
I had no idea it uses a custom install scheme name. Will do. |
e227ba9
to
a23fbf7
Compare
Done. |
a23fbf7
to
894156c
Compare
Also added pypy_nt for PyPy on Windows. |
…ils scheme Python is preparing to allow re-distributors to set custom sysconfig install schemes in 3.11+: https://bugs.python.org/issue43976 Fedora is already adapting the default installation scheme to their needs: https://lists.fedoraproject.org/archives/list/[email protected]/thread/AAGUFQZ4RZDU7KUN4HA43KQJCMSFR3GW/ With either of the above, the distributors need to signalize the paths used in virtual environments somehow. When they set the "venv" install scheme in sysconfig, it is now favored over the default sysconfig scheme as well as over distutils. A similar technique was proposed to Python, for the venv module: https://bugs.python.org/issue45413 Fixes pypa#2208
894156c
to
ad38fda
Compare
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.
Python is preparing to allow re-distributors to set custom sysconfig install schemes in 3.11+:
https://bugs.python.org/issue43976
Fedora is already adapting the default installation scheme to their needs:
https://lists.fedoraproject.org/archives/list/[email protected]/thread/AAGUFQZ4RZDU7KUN4HA43KQJCMSFR3GW/
With either of the above, the distributors need to signalize the paths used in virtual environments somehow. When they set the "venv" install scheme in sysconfig, it is now favored over the default sysconfig scheme as well as over distutils.
Fixes #2208
Thanks for contributing, make sure you address all the checklists (for details on how see
development documentation)!
tox -e fix_lint
)docs/changelog
folderI'll work on the docs next. Opening earlier to validate the test works on Widnows.