Python PKG-INFO parsing

Develop: look for PKG-INFO files recursively

Reported by Wolfgang Schnerring on 2012-01-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pkginfo
Undecided
Tres Seaver

Bug Description

At the moment, pkginfo.Develop('path') looks for a folder '*.egg-info' in the given path.

However, a lot of source distributions (Zope's come to mind) are structured like this:

  zope.foo/
    setup.py
    src/
      zope/
      zope.foo.egg-info/

Intuitively, I'd want to point Develop at the directory that contains the setup.py, but then it would have to look for the egg-info folder in subdirectories, too.

Tres Seaver (tseaver) wrote :

I would be willing to merge a branch which added a tested feature for your
use case.

For instance, if all the "normal" candidates fail, you could look for a
'setup.py' in the original path: if present, you could create a
tempdir, and then run 'python setup.py egg_info --egg-base=/path/to/tempdir'
in a subprocess: the 'tempdir' would then contain the '*.egg-info'
directory.

Changed in pkginfo:
status: New → Incomplete
Tres Seaver (tseaver) wrote :

I just pushed a change which implements this feature:

 http://bazaar.launchpad.net/~tseaver/pkginfo/trunk/revision/115

Changed in pkginfo:
assignee: nobody → Tres Seaver (tseaver)
status: Incomplete → Fix Committed
Tres Seaver (tseaver) wrote :
Changed in pkginfo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers