From 2c6322799fead5c93038efd10a5d831df06824f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Kr=C3=A1l?= Date: Fri, 21 Feb 2025 10:55:23 +0100 Subject: [PATCH 1/2] adding easyconfigs: SciPy-bundle-2024.06-foss-2023a-Python-2.7.18.eb, hypothesis-4.57.1-GCCcore-12.3.0-Python-2.7.18.eb, pybind11-2.9.2-GCCcore-12.3.0-Python-2.7.18.eb --- ...sis-4.57.1-GCCcore-12.3.0-Python-2.7.18.eb | 41 ++++++++++ ...nd11-2.9.2-GCCcore-12.3.0-Python-2.7.18.eb | 26 +++++++ ...bundle-2024.06-foss-2023a-Python-2.7.18.eb | 77 +++++++++++++++++++ 3 files changed, 144 insertions(+) create mode 100644 easybuild/easyconfigs/h/hypothesis/hypothesis-4.57.1-GCCcore-12.3.0-Python-2.7.18.eb create mode 100644 easybuild/easyconfigs/p/pybind11/pybind11-2.9.2-GCCcore-12.3.0-Python-2.7.18.eb create mode 100644 easybuild/easyconfigs/s/SciPy-bundle/SciPy-bundle-2024.06-foss-2023a-Python-2.7.18.eb diff --git a/easybuild/easyconfigs/h/hypothesis/hypothesis-4.57.1-GCCcore-12.3.0-Python-2.7.18.eb b/easybuild/easyconfigs/h/hypothesis/hypothesis-4.57.1-GCCcore-12.3.0-Python-2.7.18.eb new file mode 100644 index 000000000000..2f5bbd46fb58 --- /dev/null +++ b/easybuild/easyconfigs/h/hypothesis/hypothesis-4.57.1-GCCcore-12.3.0-Python-2.7.18.eb @@ -0,0 +1,41 @@ +easyblock = 'PythonBundle' + +name = 'hypothesis' +version = '4.57.1' +versionsuffix = '-Python-%(pyver)s' + +homepage = "https://github.com/HypothesisWorks/hypothesis" +description = """Hypothesis is an advanced testing library for Python. It lets you write tests which are parametrized + by a source of examples, and then generates simple and comprehensible examples that make your tests fail. This lets + you find more bugs in your code with less work.""" + +toolchain = {'name': 'GCCcore', 'version': '12.3.0'} + +builddependencies = [('binutils', '2.40')] + +dependencies = [('Python', '2.7.18')] + +use_pip = True +sanity_pip_check = True + +exts_list = [ + ('attrs', '21.4.0', { + 'modulename': 'attr', + 'source_tmpl': SOURCE_WHL, + 'checksums': ['2d27e3784d7a565d36ab851fe94887c5eccd6a463168875832a1be79c82828b4'], + }), + ('enum34', '1.1.10', { + 'modulename': 'enum', + 'source_tmpl': SOURCE_PY2_WHL, + 'checksums': ['a98a201d6de3f2ab3db284e70a33b0f896fbf35f8086594e8c9e74b909058d53'], + }), + ('sortedcontainers', '2.4.0', { + 'source_tmpl': SOURCE_WHL, + 'checksums': ['a163dcaede0f1c021485e957a39245190e74249897e2ae4b2aa38595db237ee0'], + }), + (name, version, { + 'checksums': ['3c4369a4b0a1348561048bcda5f1db951a1b8e2a514ea8e8c70d36e656bf6fa0'], + }), +] + +moduleclass = 'tools' diff --git a/easybuild/easyconfigs/p/pybind11/pybind11-2.9.2-GCCcore-12.3.0-Python-2.7.18.eb b/easybuild/easyconfigs/p/pybind11/pybind11-2.9.2-GCCcore-12.3.0-Python-2.7.18.eb new file mode 100644 index 000000000000..ac9fbe89af7a --- /dev/null +++ b/easybuild/easyconfigs/p/pybind11/pybind11-2.9.2-GCCcore-12.3.0-Python-2.7.18.eb @@ -0,0 +1,26 @@ +name = 'pybind11' +version = '2.9.2' +versionsuffix = '-Python-%(pyver)s' + +homepage = 'https://pybind11.readthedocs.io' +description = """pybind11 is a lightweight header-only library that exposes C++ types in Python and vice versa, + mainly to create Python bindings of existing C++ code.""" + +toolchain = {'name': 'GCCcore', 'version': '12.3.0'} + +source_urls = ['https://github.com/pybind/pybind11/archive/'] +sources = ['v%(version)s.tar.gz'] +checksums = ['6bd528c4dbe2276635dc787b6b1f2e5316cf6b49ee3e150264e455a0d68d19c1'] + +builddependencies = [ + ('binutils', '2.40'), + ('CMake', '3.26.3'), + ('Eigen', '3.4.0'), + ('pytest', '4.6.11', versionsuffix), +] + +dependencies = [('Python', '2.7.18')] + +configopts = "-DPYTHON_EXECUTABLE=$EBROOTPYTHON/bin/python" + +moduleclass = 'lib' diff --git a/easybuild/easyconfigs/s/SciPy-bundle/SciPy-bundle-2024.06-foss-2023a-Python-2.7.18.eb b/easybuild/easyconfigs/s/SciPy-bundle/SciPy-bundle-2024.06-foss-2023a-Python-2.7.18.eb new file mode 100644 index 000000000000..8c1c9a25edfa --- /dev/null +++ b/easybuild/easyconfigs/s/SciPy-bundle/SciPy-bundle-2024.06-foss-2023a-Python-2.7.18.eb @@ -0,0 +1,77 @@ +easyblock = 'PythonBundle' + +name = 'SciPy-bundle' +version = '2024.06' +versionsuffix = '-Python-%(pyver)s' + +homepage = 'https://python.org/' +description = "Bundle of Python packages for scientific software" + +toolchain = {'name': 'foss', 'version': '2023a'} +toolchainopts = {'pic': True, 'lowopt': True} + +builddependencies = [ + ('hypothesis', '4.57.1', versionsuffix), + ('UnZip', '6.0'), +] + +dependencies = [ + ('Python', '2.7.18'), + ('pybind11', '2.9.2', versionsuffix), # required by scipy + ('numpy', '1.16.6', versionsuffix) +] + +use_pip = True + +# order is important! +exts_list = [ + ('ply', '3.11', { + 'checksums': ['00c7c1aaa88358b9c765b6d3000c6eec0ba42abca5351b095321aef446081da3'], + }), + ('gast', '0.5.5', { + 'checksums': ['5f4ae749ba7199034b6912af98f05b4058d6d48fc2f065037b241be819a22924'], + }), + ('beniget', '0.4.1', { + 'checksums': ['75554b3b8ad0553ce2f607627dad3d95c60c441189875b98e097528f8e23ac0c'], + }), + ('scipy', '1.2.3', { + 'patches': ['scipy-1.2.3_fix_nan_problem_in_vi.patch'], + 'prebuildopts': 'export FFLAGS="$FFLAGS -fallow-argument-mismatch" && ', + 'checksums': [ + 'ecbe6413ca90b8e19f8475bfa303ac001e81b04ec600d17fa7f816271f7cca57', # scipy-1.2.3.tar.gz + # scipy-1.2.3_fix_nan_problem_in_vi.patch + '0513c5d0491a3f062ed024b6aa7b382706e8c42b3a3fdd26ff7a4d305ac9a30d', + ], + }), + ('mpi4py', '3.1.6', { + 'checksums': ['c8fa625e0f92b082ef955bfb52f19fa6691d29273d7d71135d295aa143dee6cb'], + }), + ('numexpr', '2.7.3', { + 'checksums': ['43616529f9b7d1afc83386f943dc66c4da5e052f00217ba7e3ad8dd1b5f3a825'], + }), + ('Bottleneck', '1.3.2', { + 'checksums': ['20179f0b66359792ea283b69aa16366419132f3b6cf3adadc0c48e2e8118e573'], + }), + ('python_dateutil', '2.9.0.post0', { + 'modulename': 'dateutil', + 'source_tmpl': SOURCE_WHL, + 'checksums': ['a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427'], + }), + ('pytz', '2025.1', { + 'source_tmpl': SOURCE_WHL, + 'checksums': ['89dd22dca55b46eac6eda23b2d72721bf1bdfef212645d81513ef5d03038de57'], + }), + ('pandas', '0.24.2', { + 'checksums': ['4f919f409c433577a501e023943e582c57355d50a724c589e78bc1d551a535a2'], + }), + ('mpmath', '1.3.0', { + 'checksums': ['7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f'], + }), + ('deap', '1.3.1', { + 'checksums': ['11f54493ceb54aae10dde676577ef59fc52d52f82729d5a12c90b0813c857a2f'], + }), +] + +sanity_pip_check = True + +moduleclass = 'lang' From 9b805337d5ff02cb00707a299084868214e8339e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Kr=C3=A1l?= Date: Mon, 24 Feb 2025 15:28:03 +0100 Subject: [PATCH 2/2] move to build deps --- .../SciPy-bundle-2024.06-foss-2023a-Python-2.7.18.eb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easybuild/easyconfigs/s/SciPy-bundle/SciPy-bundle-2024.06-foss-2023a-Python-2.7.18.eb b/easybuild/easyconfigs/s/SciPy-bundle/SciPy-bundle-2024.06-foss-2023a-Python-2.7.18.eb index 8c1c9a25edfa..ea91e19aef15 100644 --- a/easybuild/easyconfigs/s/SciPy-bundle/SciPy-bundle-2024.06-foss-2023a-Python-2.7.18.eb +++ b/easybuild/easyconfigs/s/SciPy-bundle/SciPy-bundle-2024.06-foss-2023a-Python-2.7.18.eb @@ -13,11 +13,11 @@ toolchainopts = {'pic': True, 'lowopt': True} builddependencies = [ ('hypothesis', '4.57.1', versionsuffix), ('UnZip', '6.0'), + ('pybind11', '2.9.2', versionsuffix), # required by scipy ] dependencies = [ ('Python', '2.7.18'), - ('pybind11', '2.9.2', versionsuffix), # required by scipy ('numpy', '1.16.6', versionsuffix) ]