File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,19 @@ CFG_ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5252CFG_BIN_DIR=$CFG_ROOT_DIR /$VIRTUALENV_DIR /bin
5353
5454
55+ # ###############################
56+ # Install with or without and index. With "--no-index" this is using only local wheels
57+ # This is an offline mode with no index and no network operations
58+ # NO_INDEX="--no-index "
59+ NO_INDEX=" "
60+
61+
5562# ###############################
5663# Thirdparty package locations and index handling
57- # Find packages from the local thirdparty directory
58- if [ -d " $CFG_ROOT_DIR /thirdparty" ]; then
59- PIP_EXTRA_ARGS=" --find-links $CFG_ROOT_DIR /thirdparty"
64+ # Find packages from the local thirdparty directory if present
65+ THIRDPARDIR=$CFG_ROOT_DIR /thirdparty
66+ if [[ " $( echo $THIRDPARDIR /* .whl) x" != " $THIRDPARDIR /*.whlx" ]]; then
67+ PIP_EXTRA_ARGS=" $NO_INDEX --find-links $THIRDPARDIR "
6068fi
6169
6270
@@ -182,6 +190,7 @@ while getopts :-: optchar; do
182190 esac
183191done
184192
193+
185194PIP_EXTRA_ARGS=" $PIP_EXTRA_ARGS "
186195
187196find_python
You can’t perform that action at this time.
0 commit comments