Whitelist external packages
* pypi_mirror/cmd/run_mirror.py: Use the --allow-external and --allow-insecure options so that pip 1.5 and later will assent to retrieve the netifaces, psutil, pysendfile and pytidylib packages even though they're not hosted on PyPI. The --allow-insecure option is aliased to a clearer --allow-unverified wording in 1.5, but the old form is being used to avoid breaking users of 1.4.x and will be valid at least through 1.6.x according to comments in the pip source. Change-Id: I43d276fd6d294f74fae6d7ef36ac38d27a53f14e
This commit is contained in:
parent
236a6370c0
commit
d24f19bcde
@ -164,6 +164,10 @@ class Mirror(object):
|
||||
"%(pip)s install -U %(extra_args)s --exists-action=w"
|
||||
" --download-cache=%(download_cache)s"
|
||||
" --build %(build_dir)s -f %(find_links)s"
|
||||
" --allow-external netifaces --allow-insecure netifaces"
|
||||
" --allow-external psutil --allow-insecure psutil"
|
||||
" --allow-external pysendfile --allow-insecure pysendfile"
|
||||
" --allow-external pytidylib --allow-insecure pytidylib"
|
||||
" -r %(requirements_file)s")
|
||||
venv_format = (
|
||||
"virtualenv --clear --extra-search-dir=%(extra_search_dir)s"
|
||||
@ -171,13 +175,25 @@ class Mirror(object):
|
||||
upgrade_format = (
|
||||
"%(pip)s install -U --exists-action=w"
|
||||
" --download-cache=%(download_cache)s --build %(build_dir)s"
|
||||
" --allow-external netifaces --allow-insecure netifaces"
|
||||
" --allow-external psutil --allow-insecure psutil"
|
||||
" --allow-external pysendfile --allow-insecure pysendfile"
|
||||
" --allow-external pytidylib --allow-insecure pytidylib"
|
||||
" -f %(find_links)s %(requirement)s")
|
||||
wheel_file_format = (
|
||||
"%(pip)s wheel --download-cache=%(download_cache)s"
|
||||
" --wheel-dir %(wheel_dir)s -f %(find_links)s"
|
||||
" --allow-external netifaces --allow-insecure netifaces"
|
||||
" --allow-external psutil --allow-insecure psutil"
|
||||
" --allow-external pysendfile --allow-insecure pysendfile"
|
||||
" --allow-external pytidylib --allow-insecure pytidylib"
|
||||
" -r %(requirements_file)s")
|
||||
wheel_format = (
|
||||
"%(pip)s wheel --download-cache=%(download_cache)s"
|
||||
" --allow-external netifaces --allow-insecure netifaces"
|
||||
" --allow-external psutil --allow-insecure psutil"
|
||||
" --allow-external pysendfile --allow-insecure pysendfile"
|
||||
" --allow-external pytidylib --allow-insecure pytidylib"
|
||||
" -f %(find_links)s --wheel-dir %(wheel_dir)s %(requirement)s")
|
||||
|
||||
workdir = tempfile.mkdtemp()
|
||||
|
Loading…
Reference in New Issue
Block a user