Skip to content

Commit

Permalink
Use package name, not pip_package for checking installed package
Browse files Browse the repository at this point in the history
  • Loading branch information
markgw committed Mar 23, 2020
1 parent b825046 commit 7ad5db6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/pimlico/core/dependencies/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ def __repr__(self):
return "PythonPackageOnPip<%s%s>" % (self.name, (" (%s)" % self.package) if self.package != self.name else "")

def get_installed_version(self, local_config):
reqs = list(parse_requirements(self.pip_package))
reqs = list(parse_requirements(self.package))
if len(reqs) != 1:
raise ValueError("pip_package='{}', which could not be parsed as a requirement".format(self.pip_package))
raise ValueError("pip_package='{}', which could not be parsed as a requirement".format(self.package))
# Reload the working set in case something's been installed since loaded
reload(pkg_resources)
# Look up the package
Expand Down

0 comments on commit 7ad5db6

Please sign in to comment.