Skip to content

Commit

Permalink
Merge branch 'branch-24.04' of github.com:rapidsai/devcontainers into…
Browse files Browse the repository at this point in the history
… branch-24.06
  • Loading branch information
trxcllnt committed Apr 4, 2024
2 parents 96e2709 + 0dcc115 commit 838271d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
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": "24.6.5",
"version": "24.6.6",
"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 @@ -11,7 +11,6 @@
# --pre Include pre-release and development versions. By default, pip only finds
# stable versions.
# --no-pre Don't install pre-release and development versions.
# --system-site-packages Give the virtual environment access to the system site-packages dir.
# @_include_bool_options rapids-make-pip-dependencies -h | tail -n+2 | head -n-3;
#
# @_include_value_options rapids-make-pip-dependencies -h;
Expand All @@ -23,13 +22,12 @@ make_pip_env() {
local -;
set -euo pipefail;

eval "$(_parse_args --take '-f,--force --pre --no-pre --system-site-packages' "${@:2}" <&0)";
eval "$(_parse_args --take '-f,--force --pre --no-pre' "${@:2}" <&0)";

# shellcheck disable=SC1091
. devcontainer-utils-debug-output 'rapids_build_utils_debug' 'make-pip-env';

test ${#pre[@]} -eq 0 && pre=(--pre);
test ${#system_site_packages[@]} -eq 0 && system_site_packages=();

if test -n "${no_pre-}"; then
pre=();
Expand Down Expand Up @@ -58,11 +56,11 @@ make_pip_env() {
cat "${new_env_path}";
echo "";

python -m venv "${system_site_packages[@]}" "${HOME}/.local/share/venvs/${env_name}";
python -m venv "${HOME}/.local/share/venvs/${env_name}";
# shellcheck disable=SC1090
. "${HOME}/.local/share/venvs/${env_name}/bin/activate";
python -m pip install -U pip;
python -m pip install "${pre[@]}" -I -r "${new_env_path}";
python -m pip install "${pre[@]}" -U -r "${new_env_path}";
# 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 Down

0 comments on commit 838271d

Please sign in to comment.