[Zope-dev] docs.zope.org automation

Tres Seaver tseaver at palladion.com
Mon Aug 2 18:19:52 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jens Vagelpohl wrote:
> On 8/2/10 18:26 , Martijn Faassen wrote:
>> http://packages.python.org/distribute/pkg_resources.html
> 
>> You can probably create a Distribution object somehow (handwave) from a 
>> path (whether that's the path of the package or the path the package is 
>> in, not sure).
> 
> The issue, just like with pkginfo.Develop, is that I can't find any
> function or method that finds package information in subfolders. If you
> look at...
> 
> http://packages.python.org/distribute/pkg_resources.html#getting-or-creating-distributions
> 
> ...there's this function find_distributions which supposedly offers
> subfolder searching, but it just doesn't work. At least it doesn't do
> what I would expect when I read the documentation. It finds nothing.

The 'pkginfo' utility knows how to extract package metadata from stuff
installed on the path:

http://packages.python.org/pkginfo/distributions.html#introspecting-installed-packages

as well as from checkouts:

http://packages.python.org/pkginfo/distributions.html#introspecting-development-checkouts



Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkxXRIgACgkQ+gerLs4ltQ4n+QCdFy+tKu+Gjsi0qqNd+fwdEa5K
pIkAn1uef9EUaOCib+xKI5UWcJPytKLD
=4+bj
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list