Skip to content

Commit 8e04c00

Browse files
committed
Update VSC install script
1 parent c77dbb8 commit 8e04c00

File tree

6 files changed

+1509
-11
lines changed

6 files changed

+1509
-11
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ hints.txt
99
.idea
1010
.vscode
1111
venvs
12-
setup/pip_inspect.json
12+
setup/pip-inspect.json
1313
slurm-*.*
1414
Untitled*.ipynb
1515
.virtual_documents

setup/extract_requirements.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
#!/usr/bin/env python
2+
"""Extract Python packages installed in software modules.
3+
4+
Run `pip inspect > pip-inspect.json` before calling this script.
5+
"""
6+
27
import json
38

49

510
def main():
6-
with open("pip_inspect.json") as fh:
11+
with open("pip-inspect.json") as fh:
712
data = json.load(fh)
813

914
modules = {}
@@ -18,9 +23,9 @@ def main():
1823
module = "/".join(words)
1924
modules.setdefault(module, []).append(f"{name}=={version}")
2025

21-
for module, reqs in modules.items():
26+
for module, reqs in sorted(modules.items()):
2227
print(f"# {module}")
23-
for req in reqs:
28+
for req in sorted(reqs):
2429
print(req)
2530
print()
2631

setup/ipython_kernel_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# ruff: noqa: F821
2-
c.InteractiveShellApp.matplotlib = "widget"
2+
c.InteractiveShellApp.matplotlib = "inline"
33
c.InlineBackend.figure_format = "svg"

setup/job_install_vsc.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
# the Tier-2 cluster in Ghent, on which OpenMM is already
99
# installed.
1010

11+
PYTHON_VERSION='3.13.1-GCCcore-14.2.0'
1112
MODULE_REQUIREMENTS="
13+
Python/${PYTHON_VERSION}
1214
matplotlib/3.10.3-gfbf-2025a
1315
MDTraj/1.11.0-foss-2025a
1416
nglview/3.1.4-foss-2025a
@@ -20,12 +22,10 @@ scikit-learn/1.7.0-gfbf-2025a
2022
SciPy-bundle/2025.06-gfbf-2025a
2123
tqdm/4.67.1-GCCcore-14.2.0
2224
"
23-
2425
MODULE_REQUIREMENTS=$(tr '\n' ' ' <<< ${MODULE_REQUIREMENTS})
25-
PYTHON_VERSION='3.13.1-GCCcore-14.2.0'
2626
PYTHON_RELEASE=$(awk -F. '{print $1"."$2}' <<< ${PYTHON_VERSION})
2727
VSC_ARCH="${VSC_ARCH_LOCAL}${VSC_ARCH_SUFFIX}"
28-
PIP_TOOLS="pip==24.2 build==1.2.1 pip-tools==7.4.1 pyproject-hooks==1.1.0"
28+
PIP_TOOLS="pip==25.2 build==1.3.0 pip-tools==7.5.0 pyproject-hooks==1.2.0"
2929
ROOT=${VSC_DATA}/msbs
3030
VENV=${ROOT}/venvs/${VSC_ARCH}/${PYTHON_VERSION}
3131

@@ -39,7 +39,7 @@ module load ${MODULE_REQUIREMENTS}
3939
echo "Modules loaded before installing:"
4040
module list
4141

42-
python -m venv ${VENV} --system-site-packages
42+
python -m venv ${VENV} # --system-site-packages
4343
source ${VENV}/bin/activate
4444
pip install ${PIP_TOOLS}
4545

0 commit comments

Comments
 (0)