Skip to content

Commit

Permalink
(env) use system python for virtualenv (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh authored Oct 31, 2024
2 parents 883300a + c6bff54 commit 508643a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.27.2
1.27.3
4 changes: 2 additions & 2 deletions setup/tue-env.bash
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ Environment directory '${tue_env_dir}' didn't exist (anymore)"""
return 1
fi

python3 -c "import virtualenv" 2>/dev/null ||
/usr/bin/python3 -c "import virtualenv" 2>/dev/null ||
{ echo -e "[tue-env](init-venv) 'virtualenv' module is not found. Make sure you install it 'sudo apt-get install python3-virtualenv'"; return 1; }

[[ -f "${TUE_DIR}"/user/envs/"${tue_env}" ]] || { echo "[tue-env](init-venv) No such environment: '${tue_env}'"; return 1; }
Expand Down Expand Up @@ -555,7 +555,7 @@ Environment directory '${tue_env_dir}' didn't exist (anymore)"""
then
system_site_args="--system-site-packages"
fi
python3 -m virtualenv "${venv_dir}" ${system_site_args:+${system_site_args} }--symlinks -q 2>/dev/null
/usr/bin/python3 -m virtualenv "${venv_dir}" ${system_site_args:+${system_site_args} }--symlinks -q 2>/dev/null
echo "[tue-env](init-venv) Initialized virtualenv of environment '${tue_env}'"

if [ "${tue_env}" == "${TUE_ENV}" ]
Expand Down

0 comments on commit 508643a

Please sign in to comment.