Message245961
In Homebrew we occasionally use .pth files to call site.addsitedir. This is useful when we want to add a directory to sys.path that contains .pth files that also need to be processed (for example, when adding a directory to sys.path that contains namespace packages). It would be helpful to retain a mechanism for adding site dirs from a .pth file.
Homebrew also writes temporary probe .pths containing "import site; site.homebrew_was_here = True" in order to check whether .pth files are processed in a particular path, though we could equivalently write a temporary path to a .pth file and verify that it ends up in sys.path.
Finally, Homebrew asks users to write .pth files with imports in some places where we could use usercustomize instead. |
|
Date |
User |
Action |
Args |
2015-06-29 19:57:36 | tdsmith | set | recipients:
+ tdsmith, brett.cannon, ncoghlan, eric.snow, minrk |
2015-06-29 19:57:36 | tdsmith | set | messageid: <1435607856.84.0.20774334013.issue24534@psf.upfronthosting.co.za> |
2015-06-29 19:57:36 | tdsmith | link | issue24534 messages |
2015-06-29 19:57:36 | tdsmith | create | |
|