On 24 Feb, 2009, at 13:33, Tarek Ziadé wrote:
2009/2/24 Joachim König <h...@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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig