[Distutils] A quick question on pkg_resources.find_distributions

Paul Moore p.f.moore at gmail.com
Wed Jul 13 14:13:46 CEST 2005


On 7/13/05, Paul Moore <p.f.moore at gmail.com> wrote:
> C:\Apps\Python24\lib\site-packages setuptools 0.5a12
> C:\Apps\Python24\Lib\site-packages\setuptools-0.5a12-py2.4.egg setuptools 0.5a12
[...]
> A complementary question - how can I detect when two Distribution
> instances refer to the "same" egg. Is comparing the path attribute
> sufficient?

It's not, but using os.path.normcase on the path attribute seems OK
(note that the case of the "lib" component in the 2 paths above
differs - this is Windows, where the file system is case-insensitive).

Paul.


More information about the Distutils-SIG mailing list