Skip to content

Commit

Permalink
tools/upip.py: Support == to specify exact package version.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdecker1201 authored and dpgeorge committed Dec 15, 2021
1 parent d9d67ad commit e9f8804
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/upip.py
Expand Up @@ -192,9 +192,13 @@ def fatal(msg, exc=None):


def install_pkg(pkg_spec, install_path):
data = get_pkg_metadata(pkg_spec)
package = pkg_spec.split("==")
data = get_pkg_metadata(package[0])

latest_ver = data["info"]["version"]
if len(package) == 1:
latest_ver = data["info"]["version"]
else:
latest_ver = package[1]
packages = data["releases"][latest_ver]
del data
gc.collect()
Expand Down

0 comments on commit e9f8804

Please sign in to comment.