Skip to content

Commit

Permalink
don't use modextrapaths to update $PYTHONPATH with standard path …
Browse files Browse the repository at this point in the history
…to installed Python packages (`lib/python%(pyshortver)s/site-packages`)
  • Loading branch information
boegel committed Dec 18, 2024
1 parent f4eb430 commit b2e7ee7
Show file tree
Hide file tree
Showing 14 changed files with 3 additions and 46 deletions.
2 changes: 0 additions & 2 deletions easybuild/easyconfigs/a/Arrow/Arrow-17.0.0-gfbf-2024a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ exts_list = [
}),
]

modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}

sanity_check_paths = {
'files': ['lib/libarrow.a', 'lib/libarrow.%s' % SHLIB_EXT,
'lib/python%%(pyshortver)s/site-packages/pyarrow/libarrow_python.%s' % SHLIB_EXT],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ fix_python_shebang_for = ['bindcraft.py']

postinstallcmds = ['chmod a+x %(installdir)s/bindcraft.py']

modextrapaths = {
'PATH': '',
'PYTHONPATH': ['', 'lib/python%(pyshortver)s/site-packages'],
}
modextrapaths = {'PATH': ''}

sanity_check_paths = {
'files': ['bindcraft.py'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ fix_python_shebang_for = ['bindcraft.py']

postinstallcmds = ['chmod a+x %(installdir)s/bindcraft.py']

modextrapaths = {
'PATH': '',
'PYTHONPATH': ['', 'lib/python%(pyshortver)s/site-packages'],
}
modextrapaths = {'PATH': ''}

sanity_check_paths = {
'files': ['bindcraft.py'],
Expand Down
2 changes: 0 additions & 2 deletions easybuild/easyconfigs/c/CPPE/CPPE-0.3.1-GCC-12.3.0.eb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,4 @@ sanity_check_paths = {
'dirs': ['include/cppe', 'lib/python%(pyshortver)s/site-packages', 'share/cmake'],
}

modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}

moduleclass = 'chem'
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,7 @@ exts_list = [
}),
]

modextrapaths = {
'PATH': '',
'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages',
}
modextrapaths = {'PATH': ''}

fix_python_shebang_for = [
'src/*/*.py',
Expand Down
2 changes: 0 additions & 2 deletions easybuild/easyconfigs/g/GDAL/GDAL-3.10.0-foss-2024a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,4 @@ sanity_check_paths = {

sanity_check_commands = ["python -c 'import osgeo.%(namelower)s'"]

modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}

moduleclass = 'data'
4 changes: 0 additions & 4 deletions easybuild/easyconfigs/g/GROMACS/GROMACS-2023.4-foss-2023a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,4 @@ exts_list = [
}),
]

modextrapaths = {
'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages',
}

moduleclass = 'bio'
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,4 @@ exts_list = [
}),
]

modextrapaths = {
'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages',
}

moduleclass = 'bio'
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,4 @@ exts_list = [
}),
]

modextrapaths = {
'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages',
}

moduleclass = 'bio'
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,4 @@ exts_list = [
}),
]

modextrapaths = {
'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages',
}

moduleclass = 'bio'
4 changes: 0 additions & 4 deletions easybuild/easyconfigs/g/GROMACS/GROMACS-2024.4-foss-2023b.eb
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,4 @@ exts_list = [
}),
]

modextrapaths = {
'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages',
}

moduleclass = 'bio'
4 changes: 0 additions & 4 deletions easybuild/easyconfigs/p/Parsnp/Parsnp-2.1.1-foss-2023b.eb
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,4 @@ modextravars = {
'PARSNPDIR': '',
}

modextrapaths = {
'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages',
}

moduleclass = 'bio'
2 changes: 0 additions & 2 deletions easybuild/easyconfigs/p/PySCF/PySCF-2.7.0-foss-2023a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,4 @@ sanity_check_paths = {

sanity_check_commands = ["python -c 'import pyscf'"]

modextrapaths = {'PYTHONPATH': _py_site_packages}

moduleclass = 'chem'
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,4 @@ sanity_check_commands = [
"python -c 'import pywannier90'",
]

modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}

moduleclass = 'chem'

0 comments on commit b2e7ee7

Please sign in to comment.