summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/pygmo/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/pygmo/package.py')
-rw-r--r--var/spack/repos/builtin/packages/pygmo/package.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pygmo/package.py b/var/spack/repos/builtin/packages/pygmo/package.py
new file mode 100644
index 0000000000..80c5abe893
--- /dev/null
+++ b/var/spack/repos/builtin/packages/pygmo/package.py
@@ -0,0 +1,35 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Pygmo(CMakePackage):
+ """Parallel Global Multiobjective Optimizer (and its Python alter ego
+ PyGMO) is a C++ / Python platform to perform parallel computations of
+ optimisation tasks (global and local) via the asynchronous generalized
+ island model."""
+
+ homepage = "https://esa.github.io/pygmo2/"
+ url = "https://github.com/esa/pygmo2/archive/v2.18.0.tar.gz"
+ git = "https://github.com/esa/pygmo2.git"
+
+ version('master', branch='master')
+ version('2.18.0', sha256='9f081cc973297894af09f713f889870ac452bfb32b471f9f7ba08a5e0bb9a125')
+
+ depends_on('pagmo2', type=('build', 'link'))
+ depends_on('mpi', type='build')
+ depends_on('py-pybind11@2.6.0:2.6.2', type='build')
+ depends_on('cmake@3.1:', type='build')
+
+ variant('shared', default=True, description='Build shared libraries')
+
+ def cmake_args(self):
+
+ args = [
+ self.define_from_variant('BUILD_SHARED_LIBS', 'shared'),
+ ]
+
+ return args