Skip to content

Commit

Permalink
update pip in venv
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Nov 16, 2023
1 parent 15285b7 commit 5921e7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion features/src/rapids-build-utils/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "NVIDIA RAPIDS devcontainer build utilities",
"id": "rapids-build-utils",
"version": "23.12.0",
"version": "23.12.1",
"description": "A feature to install the RAPIDS devcontainer build utilities",
"containerEnv": {
"BASH_ENV": "/etc/bash.bash_env"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ make_pip_env() {
python -m venv --system-site-packages ~/.local/share/venvs/${env_name};
. ~/.local/share/venvs/${env_name}/bin/activate;
python -m pip install --pre -I -r "${new_env_path}";
python -m pip install -U pip;
# If the venv does exist but it's different from the generated one,
# print the diff between the envs and update it
elif ! diff -BNqw "${old_env_path}" "${new_env_path}" >/dev/null 2>&1; then
Expand All @@ -113,6 +114,7 @@ make_pip_env() {
# Update the current venv
. ~/.local/share/venvs/${env_name}/bin/activate;
python -m pip install --pre -U -r "${new_env_path}";
python -m pip install -U pip;
fi

cp -a "${new_env_path}" "${old_env_path}";
Expand Down

0 comments on commit 5921e7c

Please sign in to comment.