File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,10 @@ CFG_ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5151CFG_BIN_DIR=$CFG_ROOT_DIR /$VIRTUALENV_DIR /bin
5252
5353# Find packages from the local thirdparty directory or from thirdparty.aboutcode.org
54- PIP_EXTRA_ARGS=" --find-links $CFG_ROOT_DIR /thirdparty --find-links https://thirdparty.aboutcode.org/pypi"
54+ if [ -f " $CFG_ROOT_DIR /thirdparty" ]; then
55+ PIP_EXTRA_ARGS=" --find-links $CFG_ROOT_DIR /thirdparty "
56+ fi
57+ PIP_EXTRA_ARGS=" $PIP_EXTRA_ARGS --find-links https://thirdparty.aboutcode.org/pypi"
5558
5659
5760# ###############################
Original file line number Diff line number Diff line change @@ -49,7 +49,11 @@ set "CFG_BIN_DIR=%CFG_ROOT_DIR%\%VIRTUALENV_DIR%\Scripts"
4949
5050@ rem ################################
5151@ rem # Thirdparty package locations and index handling
52- set " PIP_EXTRA_ARGS = --find-links %CFG_ROOT_DIR% \thirdparty --find-links https://thirdparty.aboutcode.org/pypi" & %INDEX_ARG%
52+ if exist " " %CFG_ROOT_DIR% \thirdparty" " (
53+ set " PIP_EXTRA_ARGS = --find-links %CFG_ROOT_DIR% \thirdparty "
54+ )
55+
56+ set " PIP_EXTRA_ARGS = %PIP_EXTRA_ARGS% --find-links https://thirdparty.aboutcode.org/pypi" & %INDEX_ARG%
5357@ rem ################################
5458
5559
You can’t perform that action at this time.
0 commit comments