Re: [Distutils] pkg_resources.find_distributions("./")
10 Feb
2006
10 Feb
'06
5:10 p.m.
At 11:14 PM 2/10/2006 +0100, Elvelind Grandin wrote:
On 2/10/06, Phillip J. Eby <pje@telecommunity.com> wrote:
There is no reliable way to tell what distribution you are in, if all you have is the directory name. If you have a *module* name, however, you can use get_provider(modulename).get_metadata('PKG-INFO') to retrieve the package's PKG-INFO text, which you can then use to find the distribution name and version.
The problem is that the package might not be installed. And get_provides needs it to be right?
The module just needs to be importable.
6867
Age (days ago)
6867
Last active (days ago)
0 comments
1 participants
participants (1)
-
Phillip J. Eby