diff --git a/pypi_mirror/cmd/run_mirror.py b/pypi_mirror/cmd/run_mirror.py index fde87a6..3579c28 100644 --- a/pypi_mirror/cmd/run_mirror.py +++ b/pypi_mirror/cmd/run_mirror.py @@ -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()