[Python-ideas] Add a site.cfg to keep a persistent list of paths

Tarek Ziadé ziade.tarek at gmail.com
Wed Oct 20 18:13:20 CEST 2010


On Wed, Oct 20, 2010 at 6:02 PM, Ian Bicking <ianb at colorstudy.com> wrote:
> On Wed, Oct 20, 2010 at 8:36 AM, Tarek Ziadé <ziade.tarek at gmail.com> wrote:
>>
>> So, if a project 'Boo' has two packages 'foo' and 'bar' and a module
>> 'baz.py', we need those in the path but also the Boo.dist-info
>> directory that is created at installation time (see PEP 376).
>> Setuptools' metadata directory is called Boo.egg-info, and distutils 1
>> has a file called Boo.egg-info since python 2.5
>
> So do it the same way as Setuptools -- setup.py egg_info writes the info to
> the root of the packages (which might be src/ for some libraries) and when
> that is added to the path, then the directory will be scanned and the
> metadata found.  And setup.py develop calls egg_info.  Replace egg with dist
> and it's all good, right?

Not quite, since packages can be located in other (and several) places
than directly there. (See my answer to Paul)

So I am trying to write this options_to_paths() code to see how things can work

> --
> Ian Bicking  |  http://blog.ianbicking.org
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>
>



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



More information about the Python-ideas mailing list