From 3f0522c00cbfa91b2dbd62b41049f6de7fb63542 Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Thu, 16 Oct 2014 18:38:04 +0100 Subject: [PATCH] This step could be simplified or removed if pip could report the version of the package it was about to install. See https://github.com/pypa/pip/issues/53 --- admin/packaging.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/admin/packaging.py b/admin/packaging.py index 3afe11d27a..d90bd43647 100644 --- a/admin/packaging.py +++ b/admin/packaging.py @@ -172,6 +172,11 @@ class GetPackageVersion(object): Record the version of ``package_name`` installed in ``virtualenv_path`` by parsing the output of ``pip show``. + XXX: This wouldn't be necessary if pip had a way to report the version of + the package that it is about to install eg + ``pip install --dry-run http://www.example.com/my/wheel.whl`` + See: https://github.com/pypa/pip/issues/53 + :ivar FilePath virtualenv_path: The path of the ``virtualenv`` containing the package. :ivar bytes package_name: The name of the package whose version will be