[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2022-03-03 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +hroncok nosy_count: 8.0 -> 9.0 pull_requests: +29780 pull_request: https://github.com/python/cpython/pull/31034 ___ Python tracker ___

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-04-27 Thread Nick Coghlan
Change by Nick Coghlan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-04-27 Thread Paul Moore
Paul Moore added the comment: New changeset d92513390a1a0da781bb08c284136f4d7abea36d by Tzu-ping Chung in branch 'master': bpo-43312: Functions returning default and preferred sysconfig schemes (GH-24644) https://github.com/python/cpython/commit/d92513390a1a0da781bb08c284136f4d7abea36d

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-04-06 Thread Stefano Rivera
Change by Stefano Rivera : -- nosy: +stefanor ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-03-29 Thread Tzu-ping Chung
Tzu-ping Chung added the comment: Gentle ping again :) I’ve also created a PR for this. > The Debian/Ubuntu packages have a local patch for distutils/setuptools > introducing an --install-layout option. Maybe have the same for pip? Pip already has a similar mechanism. The default layout is

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-03-11 Thread Piotr Dobrogost
Change by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-03-09 Thread Matthias Klose
Matthias Klose added the comment: The Debian/Ubuntu packages have a local patch for distutils/setuptools introducing an --install-layout option. Maybe have the same for pip? The intention with renaming/moving site-packages to /usr/lib/python3/dist-packages is to avoid users damaging their

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-03-09 Thread Matthias Klose
Matthias Klose added the comment: see also https://github.com/pypa/pip/issues/9617 -- nosy: +doko ___ Python tracker ___ ___

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-02-28 Thread Tzu-ping Chung
Tzu-ping Chung added the comment: How do we move the discussion forward? I would really want this to be included in 3.10. Assuming distutils is going to be removed in 3.12, pip would be left with an extremely short window if this has to wait for another year. --

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-02-24 Thread Tzu-ping Chung
Change by Tzu-ping Chung : -- keywords: +patch pull_requests: +23429 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24644 ___ Python tracker ___

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-02-24 Thread Steve Dower
Steve Dower added the comment: This seems like a good change to me. Making sure that the implementation is easily patchable sounds like a good plan, though I don't have any specific suggestions on what would be best. -- nosy: +steve.dower ___

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-02-24 Thread Tzu-ping Chung
Tzu-ping Chung added the comment: That would work as well (raising KeyError or ValueError if `name` is not valid?) -- ___ Python tracker ___

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-02-24 Thread Christian Heimes
Christian Heimes added the comment: Do you need all three items or would "get_preferred_scheme(name: str) -> str" be sufficient? -- ___ Python tracker ___

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-02-24 Thread mattip
mattip added the comment: I wonder if the distro maintainers might be able to use this to reduce the patching they do for their schema? -- nosy: +mattip ___ Python tracker

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-02-24 Thread Tzu-ping Chung
Tzu-ping Chung added the comment: Adding Christian to the nosy list since IIRC you said something related to this a while ago. -- nosy: +christian.heimes ___ Python tracker

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-02-24 Thread Tzu-ping Chung
New submission from Tzu-ping Chung : While trying to migrate pip’s internal usages of distutils to sysconfig,[1] I noticed there isn’t a way for pip to select a scheme for sysconfig.get_paths() for `pip install --target` and `pip install --user`. I tried to implement some logic to "guess" a