Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add check to make sure that download_dep_fail, sanity_pip_check, use_pip are not explicitly set to True in easyconfigs #19830

Merged
merged 3 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions easybuild/easyconfigs/a/ASAP3/ASAP3-3.13.3-foss-2023a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ dependencies = [
('kim-api', '2.3.0'),
]

use_pip = True
download_dep_fail = True
sanity_pip_check = True

sanity_check_paths = {
'files': [],
Expand Down
3 changes: 0 additions & 3 deletions easybuild/easyconfigs/a/ASAP3/ASAP3-3.13.3-intel-2023a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ dependencies = [
]

installopts = '--verbose'
use_pip = True
download_dep_fail = True
sanity_pip_check = True

sanity_check_paths = {
'files': [],
Expand Down
3 changes: 0 additions & 3 deletions easybuild/easyconfigs/a/Arrow/Arrow-14.0.1-gfbf-2023a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ _pyarrow_preinstall_opts += "PYARROW_WITH_DATASET=1 PYARROW_WITH_PARQUET=1 "

exts_defaultclass = 'PythonPackage'
exts_default_options = {
'download_dep_fail': True,
'use_pip': True,
'sanity_pip_check': True,
}
exts_list = [
('pyarrow', version, {
Expand Down
2 changes: 0 additions & 2 deletions easybuild/easyconfigs/c/CENSO/CENSO-1.2.0-GCCcore-12.3.0.eb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ dependencies = [
('Python', '3.11.3'),
]

use_pip = True

exts_list = [
(name, version, {
Expand All @@ -37,7 +36,6 @@ exts_list = [
}),
]

sanity_pip_check = True

sanity_check_paths = {
'files': ['bin/censo'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ dependencies = [
('tqdm', '4.64.0'),
]

use_pip = True
sanity_pip_check = True

exts_list = [
('tifffile', '2023.9.26', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ dependencies = [
('CSBDeep', '0.7.4', versionsuffix),
]

use_pip = True
sanity_pip_check = True

exts_list = [
(name, version, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -865,9 +865,6 @@ dependencies = [
('Arrow', '14.0.1'),
]

use_pip = True
use_pip_extras = "pandas"
sanity_pip_check = True
download_dep_fail = True

moduleclass = 'data'
2 changes: 0 additions & 2 deletions easybuild/easyconfigs/e/edlib/edlib-1.3.9-GCC-12.3.0.eb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ dependencies = [
('Python-bundle-PyPI', '2023.06'),
]

use_pip = True
sanity_pip_check = True

exts_list = [
('cogapp', '3.3.0', {
Expand Down
2 changes: 0 additions & 2 deletions easybuild/easyconfigs/f/FFAVES/FFAVES-2022.11.1-foss-2022a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ dependencies = [
('SciPy-bundle', '2022.05'),
]

use_pip = True
sanity_pip_check = True

exts_list = [
('dill', '0.3.8', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ start_dir = 'python'
# need to run a configure first, since there is only a setup.py.in
preinstallopts = 'cd .. && ./configure --prefix=%(installdir)s && cd python && '

use_pip = True
download_dep_fail = True
sanity_pip_check = True

sanity_check_paths = {
'files': [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ dependencies = [
('h5py', '3.9.0'),
]

use_pip = True

exts_list = [
('progressbar33', '2.4', {
Expand Down Expand Up @@ -43,6 +42,5 @@ sanity_check_commands = [
"single_to_multi_fast5 --help",
]

sanity_pip_check = True

moduleclass = 'bio'
2 changes: 0 additions & 2 deletions easybuild/easyconfigs/p/phyluce/phyluce-1.7.3-foss-2023a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ exts_list = [
}),
]

use_pip = True
sanity_pip_check = True

sanity_check_paths = {
'files': [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ builddependencies = [

dependencies = [('Python', '3.11.3')]

sanity_pip_check = True
use_pip = True

exts_list = [
('zipp', '3.17.0', {
Expand Down
3 changes: 0 additions & 3 deletions easybuild/easyconfigs/p/pyspoa/pyspoa-0.2.1-GCC-12.3.0.eb
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ dependencies = [
('spoa', '4.1.0'),
]

download_dep_fail = True
use_pip = True
sanity_pip_check = True

preinstallopts = "mkdir -p src/vendor/cereal && ln -s %(builddir)s/cereal-*/include src/vendor/cereal/include && "
# strip out cmake requirements, since we provide that as proper dependency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ dependencies = [
('SciPy-bundle', '2023.07'),
]

download_dep_fail = True
use_pip = True
sanity_pip_check = True

# make sure setup.py finds the parasail library
preinstallopts = "ln -s $EBROOTPARASAIL/lib/libparasail.so parasail/libparasail.%s && " % SHLIB_EXT
Expand Down
2 changes: 0 additions & 2 deletions easybuild/easyconfigs/w/WhatsHap/WhatsHap-2.2-foss-2023a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ dependencies = [
('python-isal', '1.1.0'),
]

sanity_pip_check = True
use_pip = True

exts_list = [
('xopen', '1.7.0', {
Expand Down
21 changes: 21 additions & 0 deletions test/easyconfigs/easyconfigs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1417,6 +1417,27 @@ def template_easyconfig_test(self, spec):

self.assertFalse(redefined_keys, redefined_keys_error_msg)

# make sure that download_dep_fail, use_pip, sanity_pip_check are not explicitly enabled,
# since they are enabled by default now in PythonPackage easyblock
patterns = [
# top-level easyconfig parameters
"""^download_dep_fail = True""",
"""^sanity_pip_check = True""",
"""^use_pip = True""",
# for specific extensions, or in exts_default_options
"""["']download_dep_fail["']: True""",
"""["']sanity_pip_check["']: True""",
"""["']use_pip["']: True""",
]
hits = []
for pattern in patterns:
regex = re.compile(pattern, re.M)
hits += regex.findall(ec.rawtxt)

error_msg = "download_dep_fail, sanity_pip_check, use_pip should not be set to True "
error_msg += "(already enabled by default in PythonPackage easyblock)"
self.assertFalse(hits, error_msg)

# make sure old GitHub urls for EasyBuild that include 'hpcugent' are no longer used
old_urls = [
'github.com/hpcugent/easybuild',
Expand Down