Re: File based configuration for the import system
Antoine Pitrou <[email protected]> Tue, 26 Apr 2016 17:08:29 +0200
| Newsgroups | gmane.comp.python.import |
|---|---|
| Message-ID | <20160426170829.0966d543@fsol> |
On Tue, 26 Apr 2016 12:19:04 +1000 Nick Coghlan <[email protected]> wrote: > > For me though, one of the other motivations behind the proposed changes in > PEP 432 is getting to replace the current sys.path calculation code in > getpath.c and getpathp.c with Python code in importlib._bootstrap or > (depending on boot sequence details) importlib._bootstrap_external. > > Once we did that, there would be a range of ideas (like allowing additional > path handling customisations in venv configuration files) that become > significantly more feasible to implement and maintain. > > So, does that sound reasonable to folks as a revised primary motivation for > that PEP: moving the default sys.path calculation code to Python for ease > of reuse across implementations, and for ease of maintenance and > enhancement within CPython itself? Platonically, that sounds like a good idea, but obviously I'm not the one doing the work (and good luck with the bootstrapping issues ;-)). Regards Antoine.