[Distutils] RFC : PEP 376 - egg.info
David Lyon
david.lyon at preisshare.net
Thu Apr 30 16:34:14 CEST 2009
Hi Tarek,
On Thu, 30 Apr 2009 15:50:19 +0200, Tarek Ziadé <ziade.tarek at gmail.com>
wrote:
>> But during package installation, this information will be written
>> into a .PTH file somewhere along the python path...
>
> No, you just have a list of relative paths to installed package there
> that's it.
It means the same thing.
> You don't even know what packages were installed for your project
> unless you digg into the source distribution.
Yes I do...
I have the following code:
--code-------
import pkg_resources
ws = pkg_resources.WorkingSet()
for i in ws:
s = str(i)
print s
--end code---
That tells me what packages I have...
> For example, if a project installs two packages in your Python, how do
> you know it ?
The above code will tell me...
both packages will appear in the list.
David
More information about the Distutils-SIG
mailing list