Skip to content

Commit 1f24f9a

Browse files
committed
Install dsub in libEnv, with PYTHONNOUSERSITE
1 parent 10d1678 commit 1f24f9a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

features/src/workbench-tools/install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,11 @@ else
145145
fi
146146

147147
# Install dsub via pip if on GCP. The conda version is outdated.
148+
# dsub is installed in LIB_ENV because it can be used as a Python library, and
149+
# users may want to install additional packages alongside it.
150+
# PYTHONNOUSERSITE=1 prevents pip from seeing/modifying packages in user site-packages.
148151
if [[ "${CLOUD}" == "gcp" ]]; then
149-
"${WORKBENCH_TOOLS_DIR}/2/bin/pip" install dsub
152+
PYTHONNOUSERSITE=1 "${LIB_ENV}/bin/pip" install dsub
150153
fi
151154

152155
# Force the perl and python scripts to use the correct perl/python

0 commit comments

Comments
 (0)