-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
auto-lockedOutdated issues that have been locked by automationOutdated issues that have been locked by automation
Description
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
Metadata
Metadata
Assignees
Labels
auto-lockedOutdated issues that have been locked by automationOutdated issues that have been locked by automation