Commit 1a814e4 1 parent 789cb13 commit 1a814e4 Copy full SHA for 1a814e4
File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,17 @@ log() { echo -e "\x1B[92m[OK]\x1B[39m $@"; }
15
15
16
16
source " $VENV_ROOT /bin/activate"
17
17
18
+ MODULE_FEATURE=" [dev]"
19
+ if ! [[ -z " ${BUILD_CONTEXT+x} " ]]; then
20
+ if [[ " $BUILD_CONTEXT " == " ci" ]]; then
21
+ MODULE_FEATURE=" [test]" # Will cause testing tools to be installed.
22
+ export PIP_CACHE_DIR=$VENV_ROOT /pip_cache # Avoid concurrent cache access issue on CI
23
+ echo " PIP_CACHE_DIR=${PIP_CACHE_DIR} "
24
+ fi
25
+ fi
26
+
27
+ pip3 cache info
28
+
18
29
if ! pip3 show wheel 2>&1 > /dev/null; then
19
30
log " Installing wheel..."
20
31
pip3 install wheel
@@ -24,13 +35,6 @@ if ! pip3 show wheel 2>&1 >/dev/null; then
24
35
pip3 install --upgrade setuptools
25
36
fi
26
37
27
- MODULE_FEATURE=" [dev]"
28
- if ! [[ -z " ${BUILD_CONTEXT+x} " ]]; then
29
- if [[ " $BUILD_CONTEXT " == " ci" ]]; then
30
- MODULE_FEATURE=" [test]" # Will cause testing tools to be installed.
31
- fi
32
- fi
33
-
34
38
if ! diff " $PY_MODULE_ROOT /setup.py" " $VENV_ROOT /cache/setup.py" 2>&1 > /dev/null; then
35
39
log " Install inside venv"
36
40
pip3 install -e " ${PY_MODULE_ROOT}${MODULE_FEATURE} "
You can’t perform that action at this time.
0 commit comments