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 )"
51
51
CFG_BIN_DIR=$CFG_ROOT_DIR /$VIRTUALENV_DIR /bin
52
52
53
53
# 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"
55
58
56
59
57
60
# ###############################
Original file line number Diff line number Diff line change @@ -49,7 +49,11 @@ set "CFG_BIN_DIR=%CFG_ROOT_DIR%\%VIRTUALENV_DIR%\Scripts"
49
49
50
50
@ rem ################################
51
51
@ 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%
53
57
@ rem ################################
54
58
55
59
You can’t perform that action at this time.
0 commit comments