[Python-Dev] "packaging" merge imminent

Tarek Ziadé ziade.tarek at gmail.com
Tue May 17 23:25:38 CEST 2011


On Tue, May 17, 2011 at 6:42 PM, Christian Heimes <lists at cheimes.de> wrote:
> Am 17.05.2011 17:36, schrieb Tarek Ziadé:
>> The next change I have planned is to allow several levels of
>> configuration, like distutils.cfg does. sysconfig.py will look for a
>> sysconfig.cfg file in these places:
>>
>> 1. the current working directory -- so can be potentially included in
>> a project source release
>> 2. the user home  (specific location be defined, maybe in ~/local)
>> [inherits from the previous one]
>> 3. the global
>
> You may want to study my site package PEP [1] regarding possible
> security implications. I recommend that you ignore the current working
> directory and user's home directory under conditions like different
> effective user or the -E option.

Sounds good, thanks


> A good place for a local sysconfig.cfg could be the user's stdlib
> directory (e.g. ~/.local/lib/python3.2/sysconfig.cfg).

Yes, so, part of the packaging imcoming work will be to relocate all
user .cfg files in the same, python-specific place.

That includes pydistutils.cfg, and pypirc. I remember we did talk
about that a few months ago, and will restart this discussion asap


> Christian
>
> [1] http://www.python.org/dev/peps/pep-0370
>



-- 
Tarek Ziadé | http://ziade.org


More information about the Python-Dev mailing list