From ea821ee68374e8a249a3e7f728edb746ece3c4fa Mon Sep 17 00:00:00 2001 From: Mike Heald Date: Wed, 14 Jan 2015 12:37:06 +0000 Subject: [PATCH] Pin pip so download cache location works The new release of pip does not allow you to specify a dowload cache location - it is deprecated. This means that the tarball mirror cannot be created because it relies on the download cache being in the configured location. This change pins the versin of pip to 1.5.6 so the download cache location still works. Change-Id: Ib4d058f27de3c37e0c58c50516e6af2b3f8188a5 --- pypi_mirror/cmd/run_mirror.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypi_mirror/cmd/run_mirror.py b/pypi_mirror/cmd/run_mirror.py index b003757..49d6916 100644 --- a/pypi_mirror/cmd/run_mirror.py +++ b/pypi_mirror/cmd/run_mirror.py @@ -256,7 +256,7 @@ class Mirror(object): self.run_command( venv_format % dict( extra_search_dir=pip_cache_dir, venv_dir=venv)) - for requirement in ["pip", "wheel", "virtualenv"]: + for requirement in ["pip==1.5.6", "wheel", "virtualenv"]: for extra_args in ("", "--no-use-wheel"): self.run_command( upgrade_format % dict(