[Distutils] PEP 376 for Distutils
Ronald Oussoren
ronaldoussoren at mac.com
Tue Feb 24 16:39:24 CET 2009
On 24 Feb, 2009, at 13:33, Tarek Ziadé wrote:
>
>
> 2009/2/24 Joachim König <him at online.de>:
>> An other option could be to put the egg-info dir into the package
>> itself, e.g.
>>
>> zlib/
>> __init__.py
>> egg-info/
>> PKG-INFO
>> MANIFEST
>> RECORD
>> ...
>
> This would require setuptools and pip to change the way they look for
> the packages,
Not only that, it also requires that the name of the distribution is
the same as the name of (one of) its python packages. I have several
projects where this correspondence is not present.
>
> but if the functions to work with this are located in Python, they
> will be able to use the
> same bits which could be great.
>
>
>> If the location of the egg-info dir and the encoding of the python
>> version and package
>> version are only there for performance optimization reasons I'd
>> suggest to really decouple
>> optimization from file naming and having a caching directory that
>> can compute an
>> optimized representation once when an out-of-date situation is
>> detected (e.g. when new
>> packages are installed) making the optimization even faster, e.g.
>> by having a file
>> in suitable format instead of calling os.listdir() and iterating
>> over the result.
>>
>
> Indeed. Having an index file would make things a whole lot simpler.
I don't see how this would make thing easier. An index file introduces
another concept and requires care to ensure that it doesn't get out of
date.
Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2224 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20090224/4619c213/attachment-0001.bin>
More information about the Distutils-SIG
mailing list