From 8587dae7206bf3a35c893ba38cbfa75cb2d634b3 Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Tue, 5 Dec 2023 18:19:38 +0000 Subject: [PATCH 1/2] Switch pip index --- .../bin/post-attach-command.sh | 25 ++++--------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/features/src/rapids-build-utils/opt/rapids-build-utils/bin/post-attach-command.sh b/features/src/rapids-build-utils/opt/rapids-build-utils/bin/post-attach-command.sh index e266ed7e..b6b01de5 100755 --- a/features/src/rapids-build-utils/opt/rapids-build-utils/bin/post-attach-command.sh +++ b/features/src/rapids-build-utils/opt/rapids-build-utils/bin/post-attach-command.sh @@ -1,28 +1,13 @@ #! /usr/bin/env bash if test -n "${PYTHON_PACKAGE_MANAGER:-}"; then + pypi_index="https://pypi.anaconda.org/rapidsai-wheels-nightly/simple" if [ "${PYTHON_PACKAGE_MANAGER:-}" = "pip" ] \ && devcontainer-utils-vault-s3-creds-test 2>&1 >/dev/null \ - && ! grep -q 'pypi.k8s.rapids.ai' <<< "$(pip config get global.extra-index-url 2>&1)"; then - echo "Logging into the RAPIDS nightly PyPI index at 'https://pypi.k8s.rapids.ai' ..."; - echo " This index isn't particularly secret, but we don't make it publicly accessible."; - echo " If you're seeing this message, you are a member of NVIDIA's GitHub organization."; - echo " Search for 'pypi.k8s.rapids.ai' in #swrapids-pip-packages to find the credentials."; - read -rp "Username: " rapids_pypi_username <$(tty); - if test -n "${rapids_pypi_username:-}"; then - read -rsp "Password: " rapids_pypi_password <$(tty); - if test -n "${rapids_pypi_password:-}"; then - pip config set \ - "global.extra-index-url" \ - "https://${rapids_pypi_username}:${rapids_pypi_password}@pypi.k8s.rapids.ai/simple"; - else - echo "Canceled." >&2; - fi - unset rapids_pypi_password; - else - echo "Canceled." >&2; - fi - unset rapids_pypi_username; + && ! grep -q ${pypi_index} <<< "$(pip config get global.extra-index-url 2>&1)"; then + pip config set \ + "global.extra-index-url" \ + ${pypi_index}; fi rapids-make-${PYTHON_PACKAGE_MANAGER}-env || true; From db8f9b61a4348c011fce2293d8db02d295798d31 Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Wed, 6 Dec 2023 20:04:09 +0000 Subject: [PATCH 2/2] Bump version --- features/src/rapids-build-utils/devcontainer-feature.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/src/rapids-build-utils/devcontainer-feature.json b/features/src/rapids-build-utils/devcontainer-feature.json index 3e518348..190fad5c 100644 --- a/features/src/rapids-build-utils/devcontainer-feature.json +++ b/features/src/rapids-build-utils/devcontainer-feature.json @@ -1,7 +1,7 @@ { "name": "NVIDIA RAPIDS devcontainer build utilities", "id": "rapids-build-utils", - "version": "24.2.1", + "version": "24.2.2", "description": "A feature to install the RAPIDS devcontainer build utilities", "containerEnv": { "BASH_ENV": "/etc/bash.bash_env"