File tree Expand file tree Collapse file tree 6 files changed +1509
-11
lines changed
Expand file tree Collapse file tree 6 files changed +1509
-11
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ hints.txt
99.idea
1010.vscode
1111venvs
12- setup /pip_inspect .json
12+ setup /pip-inspect .json
1313slurm- * . *
1414Untitled * .ipynb
1515.virtual_documents
Original file line number Diff line number Diff line change 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+
27import json
38
49
510def 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
Original file line number Diff line number Diff line change 11# ruff: noqa: F821
2- c .InteractiveShellApp .matplotlib = "widget "
2+ c .InteractiveShellApp .matplotlib = "inline "
33c .InlineBackend .figure_format = "svg"
Original file line number Diff line number Diff line change 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'
1112MODULE_REQUIREMENTS="
13+ Python/${PYTHON_VERSION}
1214matplotlib/3.10.3-gfbf-2025a
1315MDTraj/1.11.0-foss-2025a
1416nglview/3.1.4-foss-2025a
@@ -20,12 +22,10 @@ scikit-learn/1.7.0-gfbf-2025a
2022SciPy-bundle/2025.06-gfbf-2025a
2123tqdm/4.67.1-GCCcore-14.2.0
2224"
23-
2425MODULE_REQUIREMENTS=$( tr ' \n' ' ' <<< ${MODULE_REQUIREMENTS} )
25- PYTHON_VERSION=' 3.13.1-GCCcore-14.2.0'
2626PYTHON_RELEASE=$( awk -F. ' {print $1"."$2}' <<< ${PYTHON_VERSION} )
2727VSC_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"
2929ROOT=${VSC_DATA} /msbs
3030VENV=${ROOT} /venvs/${VSC_ARCH} /${PYTHON_VERSION}
3131
@@ -39,7 +39,7 @@ module load ${MODULE_REQUIREMENTS}
3939echo " Modules loaded before installing:"
4040module list
4141
42- python -m venv ${VENV} --system-site-packages
42+ python -m venv ${VENV} # --system-site-packages
4343source ${VENV} /bin/activate
4444pip install ${PIP_TOOLS}
4545
You can’t perform that action at this time.
0 commit comments