Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Bug in usage of pip.FrozenRequirement.from_dist() ? #319

Open
jedie opened this Issue · 1 comment

2 participants

Jens Diemer Simeon Visser
Jens Diemer

I would like to build a list if installed packages in a virtualenv and would like to differentiate between editables and normal packages...

But this script identify all editables as normal packages:

import pip
from pip.util import get_installed_distributions

for dist in get_installed_distributions(local_only=True):
    req = pip.FrozenRequirement.from_dist(dist, dependency_links=[], find_tags=False)
    if req.editable:
        print "editable: %s" % req
    else:
        print "normal package: %s" % req

I call this script in a activated environment used pip v1.0.1

Simeon Visser

This issue can be closed, this now works correctly in 6.0.dev1 (with a minor update to the above code that get_installed_distributions is now in pip.utils, not pip.util).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.