1
Fork 0

fixup! fix(hpc): numpy

This commit is contained in:
Tibo De Peuter 2026-04-04 23:20:12 +02:00
parent 1b15932369
commit 7e902aa8b6
3 changed files with 3 additions and 6 deletions

View file

@ -39,10 +39,6 @@ set -euo pipefail
VENV_LIB_DIR="$VIRTUAL_ENV/lib/python$(python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')/site-packages"
export PYTHONPATH="$VENV_LIB_DIR:$PYTHONPATH"
# Overlay modern NumPy/Protobuf versions
echo ">>> Applying library overlays (NumPy, Protobuf)..."
pip install --upgrade --no-deps numpy protobuf
echo '>>> Installing ipykernel...'
CLUSTER_ID="${VSC_INSTITUTE_CLUSTER:-generic}"
python -m ipykernel install --user --name="sel3_${CLUSTER_ID}" \

View file

@ -47,8 +47,8 @@ source vsc-venv --activate \
--requirements "$HPC_CONFIG_DIR/requirements.txt"
set -euo pipefail
# Force the venv path to the front of PYTHONPATH to override system modules (e.g. NumPy 1.2x)
# This is required because VSC system modules are appended to PYTHONPATH and would otherwise shadow your venv
# Force the venv path to the front of PYTHONPATH so venv packages take priority
# over system module packages (e.g. SciPy-bundle) that may be injected by loaded modules.
VENV_LIB_DIR="$VIRTUAL_ENV/lib/python$(python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')/site-packages"
export PYTHONPATH="$VENV_LIB_DIR:$PYTHONPATH"