[Python-Dev] Fixing #7175: a standard location for Python config files
Michael Foord
fuzzyman at voidspace.org.uk
Thu Aug 12 20:09:37 CEST 2010
On 12/08/2010 08:26, Tarek Ziadé wrote:
> [snip...]
> Choosing an arbitrary location we think is good on every system is fine
> and non risky I think, as long as Python let the various distribution
> change those paths though configuration.
>
> In fact, that's one of the future goal of the sysconfig module I had in mind.
>
> Instead of having it reading paths from python variables, I would like
> to introduce
> a configuration file global to Python containing all the installation paths, and
> the paths we are currently discussing.
>
> That file could then be changed by distributions depending on their layouts.
>
>
Yes - this sounds good. +1 It also provides a single place for users who
are unhappy with the defaults that we choose.
Michael
> It will avoid distributions to hack Python to change those paths.
> For instance, Ubuntu currently patches distutils to change the
> installation paths.
>
> So let's:
>
> - define all the default locations for each system
> - define a sysconfig.cfg file that contains all installation paths,
> for each target system
> - change sysconfig.py so it uses it, instead of the global dicts it
> currently has
>
>
> Regards
> Tarek
>
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.
More information about the Python-Dev
mailing list