Commit e9f88048 authored by Christian Decker's avatar Christian Decker Committed by Damien George

tools/upip.py: Support == to specify exact package version.

parent d9d67ade
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment