Develop: look for PKG-INFO files recursively

Bug #919147 reported by Wolfgang Schnerring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pkginfo
Fix Released
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.

Revision history for this message
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
Revision history for this message
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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.