File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 22
33set -ex
44
5- python3.10 -m venv /opt/venv/tutorials
6- source /opt/venv/tutorials/bin/activate
7- pip install --upgrade pip
8- pip install -r ./requirements.txt
5+ as_ci_user () {
6+ # NB: unsetting the environment variables works around a conda bug
7+ # https://github.com/conda/conda/issues/6576
8+ # NB: Pass on PATH and LD_LIBRARY_PATH to sudo invocation
9+ # NB: This must be run from a directory that the user has access to,
10+ # works around https://github.com/conda/conda-package-handling/pull/34
11+ sudo -E -H -u ci-user env -u SUDO_UID -u SUDO_GID -u SUDO_COMMAND -u SUDO_USER env " PATH=$PATH " " LD_LIBRARY_PATH=$LD_LIBRARY_PATH " $*
12+ }
13+
14+ as_ci_user python3.10 -m venv /opt/venv/tutorials
15+ as_ci_user source /opt/venv/tutorials/bin/activate
16+ as_ci_user pip install --upgrade pip
17+ as_ci_user pip install -r ./requirements.txt
You can’t perform that action at this time.
0 commit comments