Issue 12375: Add packages_root to sys.path for hooks (original) (raw)
Issue12375
This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/56584
classification
Title: | Add packages_root to sys.path for hooks | ||
---|---|---|---|
Type: | Stage: | resolved | |
Components: | Distutils2 | Versions: | Python 3.3, 3rd party |
process
Status: | closed | Resolution: | out of date |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | eric.araujo | Nosy List: | alexis, eric.araujo, erik.bray, tarek |
Priority: | normal | Keywords: |
Created on 2011-06-20 16:23 by erik.bray, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (4) | ||
---|---|---|
msg138737 - (view) | Author: Erik Bray (erik.bray) * ![]() |
Date: 2011-06-20 16:23 |
I just saw [Add cwd to sys.path for hooks] and was reminded that this would also be useful (and in fact necessary if hook code is in a package that's under some root other than cwd). On a related matter, the current use of Distribution.package_dir is confusing. Sometimes it's assumed to be a string, though in other parts of the code it's assumed to be a dict to support multiple package dirs--something which I thought was going away. | ||
msg138746 - (view) | Author: Éric Araujo (eric.araujo) * ![]() |
Date: 2011-06-20 18:50 |
+1. About packages_root usage: please file another bug. I think new code to deal with packages_root was added, but internally packages_dir was not cleaned up. Another problem is that these arguments affect all modules, not only packages, and are thus misnamed. | ||
msg138748 - (view) | Author: Erik Bray (erik.bray) * ![]() |
Date: 2011-06-20 19:21 |
Added for packages_root/package_dir cleanup. | ||
msg145951 - (view) | Author: Éric Araujo (eric.araujo) * ![]() |
Date: 2011-10-19 20:06 |
I have a patch for this. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:18 | admin | set | github: 56584 |
2014-03-12 10:27:33 | eric.araujo | set | status: open -> closedresolution: out of datestage: resolved |
2011-10-19 20:06:23 | eric.araujo | set | assignee: tarek -> eric.araujomessages: + versions: + 3rd party |
2011-06-20 19:21:16 | erik.bray | set | messages: + |
2011-06-20 18:50:47 | eric.araujo | set | messages: + |
2011-06-20 16:23:35 | erik.bray | create |