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 )"
52
52
CFG_BIN_DIR=$CFG_ROOT_DIR /$VIRTUALENV_DIR /bin
53
53
54
54
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
+
55
62
# ###############################
56
63
# 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 "
60
68
fi
61
69
62
70
@@ -182,6 +190,7 @@ while getopts :-: optchar; do
182
190
esac
183
191
done
184
192
193
+
185
194
PIP_EXTRA_ARGS=" $PIP_EXTRA_ARGS "
186
195
187
196
find_python
You can’t perform that action at this time.
0 commit comments