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

{lib}[foss/2020b] pygmo v2.16.1, pagmo v2.17.0 w/ Python 3.8.6 #12678

Merged
merged 2 commits into from Apr 22, 2021
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
36 changes: 36 additions & 0 deletions easybuild/easyconfigs/p/pagmo/pagmo-2.17.0-foss-2020b.eb
@@ -0,0 +1,36 @@
easyblock = 'CMakeMake'

name = 'pagmo'
version = '2.17.0'

homepage = 'https://esa.github.io/pagmo2'
description = "pagmo is a C++ scientific library for massively parallel optimization."

toolchain = {'name': 'foss', 'version': '2020b'}
toolchainopts = {'usempi': True}

source_urls = ['https://github.com/esa/pagmo2/archive/']
sources = ['v%(version)s.tar.gz']
checksums = ['1b95b036f75e6fa0b21082ab228dbd63cd18ca10d9622ac53629245e0f95c35c']

builddependencies = [
('CMake', '3.18.4'),
]

dependencies = [
('Boost', '1.74.0'),
('tbb', '2020.3'),
('Eigen', '3.3.8'),
('NLopt', '2.6.2'),
]

configopts = "-DPAGMO_WITH_EIGEN3=ON -DPAGMO_WITH_NLOPT=ON -DPAGMO_BUILD_TESTS=ON"

runtest = 'test'

sanity_check_paths = {
'files': ['lib/libpagmo.%s' % SHLIB_EXT],
'dirs': ['include/pagmo', 'lib/cmake/pagmo'],
}

moduleclass = 'lib'
52 changes: 52 additions & 0 deletions easybuild/easyconfigs/p/pygmo/pygmo-2.16.1-foss-2020b.eb
@@ -0,0 +1,52 @@
easyblock = 'CMakePythonPackage'

name = 'pygmo'
version = '2.16.1'

homepage = 'https://esa.github.io/pygmo2'
description = "pygmo is a scientific Python library for massively parallel optimization."

toolchain = {'name': 'foss', 'version': '2020b'}

source_urls = ['https://github.com/esa/pygmo2/archive/refs/tags/']
sources = ['v%(version)s.tar.gz']
checksums = ['54d4fa99e4bff539fca67dfcdc909499fd3f1a3186f7c7fc8200f19512954166']

builddependencies = [
('CMake', '3.18.4'),
('pybind11', '2.6.0'),
]

dependencies = [
('Python', '3.8.6'),
('SciPy-bundle', '2020.11'),
('Boost', '1.74.0'),
('pagmo', '2.17.0'),
('matplotlib', '3.3.3'),
('networkx', '2.5'),
]

runtest = False

exts_defaultclass = 'PythonPackage'

exts_default_options = {
'source_urls': [PYPI_SOURCE],
'download_dep_fail': True,
'use_pip': True,
}

exts_list = [
('cloudpickle', '1.6.0', {
'sources': ['%(name)s-%(version)s.tar.gz'],
'checksums': ['9bc994f9e9447593bd0a45371f0e7ac7333710fcf64a4eb9834bf149f4ef2f32'],
}),
('dill', '0.3.3', {
'sources': ['%(name)s-%(version)s.zip'],
'checksums': ['efb7f6cb65dba7087c1e111bb5390291ba3616741f96840bfc75792a1a9b5ded'],
}),
]

sanity_pip_check = True

moduleclass = 'lib'
7 changes: 4 additions & 3 deletions test/easyconfigs/easyconfigs.py
Expand Up @@ -767,10 +767,11 @@ def check_R_packages(self, changed_ecs):
def check_sanity_check_paths(self, changed_ecs):
"""Make sure a custom sanity_check_paths value is specified for easyconfigs that use a generic easyblock."""

# GoPackage, PythonBundle & PythonPackage already have a decent customised sanity_check_paths
# some generic easyblocks already have a decent customised sanity_check_paths,
# including CMakePythonPackage, GoPackage, PythonBundle & PythonPackage;
# BuildEnv, ModuleRC and Toolchain easyblocks doesn't install anything so there is nothing to check.
whitelist = ['BuildEnv', 'CrayToolchain', 'GoPackage', 'ModuleRC', 'PythonBundle', 'PythonPackage',
'Toolchain']
whitelist = ['BuildEnv', 'CMakePythonPackage', 'CrayToolchain', 'GoPackage', 'ModuleRC',
'PythonBundle', 'PythonPackage', 'Toolchain']
# Bundles of dependencies without files of their own
# Autotools: Autoconf + Automake + libtool, (recent) GCC: GCCcore + binutils, CUDA: GCC + CUDAcore,
# CESM-deps: Python + Perl + netCDF + ESMF + git
Expand Down