Skip to content

Commit 50c22fa

Browse files
committed
Use only PyPI for downloads
This is much faster. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent be243d0 commit 50c22fa

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

configure

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@ CFG_BIN_DIR=$CFG_ROOT_DIR/$VIRTUALENV_DIR/bin
5656
# Thirdparty package locations and index handling
5757
# Find packages from the local thirdparty directory or from thirdparty.aboutcode.org
5858
# offline mode for scancode installation with no index at all
59-
if [ -f "$CFG_ROOT_DIR/thirdparty" ]; then
59+
if [ -d "$CFG_ROOT_DIR/thirdparty" ]; then
6060
PIP_EXTRA_ARGS="--no-index --find-links $CFG_ROOT_DIR/thirdparty"
61-
else
62-
PIP_EXTRA_ARGS="--find-links https://thirdparty.aboutcode.org/pypi/simple/links.html"
6361
fi
6462

6563
################################

configure.bat

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ set "CFG_BIN_DIR=%CFG_ROOT_DIR%\%VIRTUALENV_DIR%\Scripts"
5757
if exist "%CFG_ROOT_DIR%\thirdparty" (
5858
set PIP_EXTRA_ARGS=--no-index --find-links "%CFG_ROOT_DIR%\thirdparty"
5959
)
60-
set "PIP_EXTRA_ARGS=%PIP_EXTRA_ARGS% --find-links https://thirdparty.aboutcode.org/pypi/simple/links.html"
6160

6261

6362
@rem ################################
@@ -70,7 +69,6 @@ if not defined CFG_QUIET (
7069
@rem ################################
7170
@rem # Main command line entry point
7271
set "CFG_REQUIREMENTS=%REQUIREMENTS%"
73-
set "NO_INDEX=--no-index"
7472

7573
:again
7674
if not "%1" == "" (

0 commit comments

Comments
 (0)