[Zope-dev] docs.zope.org automation

Jens Vagelpohl jens at dataflake.org
Mon Aug 2 11:25:15 EDT 2010


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

On 8/2/10 16:36 , Stephan Richter wrote:
> On Monday, August 02, 2010, Jens Vagelpohl wrote:
>> 'll have to look at that. Currently, the documentation builder does not
>> do any introspection on the package itself, mostly because I do not want
>> to fully install the package and pull in all dependencies. Maybe there's
>> a simple way that does not require full installation.
> 
> I agree. This does not build the package:
> 
> python setup.py --long-description

Can someone tell me how to do that when I am in Python code already?
Given the path to the checkout, can I use some setuptools/pkg_resources
or pkginfo magic to get at this data?

My specific problem is this: Many packages define an intermediate
folder, like "src", in which the actual code path is stored. When
someone runs "setup.py egg_info" then the .egg-info folder ends up in
"src" and not at the root. Trying to use e.g. pkginfo.Develop or
pkg_resources.find_distributions with the root folder won't find the
.egg-info folder in the "src" subfolder. I'd have to do something
horrible like os.walk to find distributions, which I really don't want.

jens


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkxW41sACgkQRAx5nvEhZLIrzgCeMVQhPaa0QwSZriPxyzTkyApk
6kIAoIbmZ19Rhq4nKOksK5byw5FAwsyg
=d3W2
-----END PGP SIGNATURE-----


More information about the Zope-Dev mailing list