summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorLydéric Debusschère <lyderic.de@gmail.com>2023-12-01 15:54:02 +0100
committerGitHub <noreply@github.com>2023-12-01 08:54:02 -0600
commit9ef57c3c86b167f9151ca157a6a30d7e6c3cd298 (patch)
tree84e5463334d9c08c4957748d6776c5e7dfe7b041 /var
parent3b021bb4acd3428b55c43851ce48dc99b86dccf9 (diff)
downloadspack-9ef57c3c86b167f9151ca157a6a30d7e6c3cd298.tar.gz
spack-9ef57c3c86b167f9151ca157a6a30d7e6c3cd298.tar.bz2
spack-9ef57c3c86b167f9151ca157a6a30d7e6c3cd298.tar.xz
spack-9ef57c3c86b167f9151ca157a6a30d7e6c3cd298.zip
py-cma: new package (#41326)
* py-pycma: new package * rename py-pycma in py-cma; py-cma: use pypi instead of github sources --------- Co-authored-by: LydDeb <lyderic.debusschere@eolen.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-cma/package.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-cma/package.py b/var/spack/repos/builtin/packages/py-cma/package.py
new file mode 100644
index 0000000000..9ee7c11bf6
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-cma/package.py
@@ -0,0 +1,32 @@
+# Copyright 2013-2023 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.package import *
+
+
+class PyCma(PythonPackage):
+ """
+ Python implementation of CMA-ES Covariance Matrix Adaptation Evolution Str
+ ategy for non-linear numerical optimization in Python
+ """
+
+ homepage = "https://github.com/CMA-ES/pycma"
+ pypi = "cma/cma-3.3.0.tar.gz"
+
+ maintainers("LydDeb")
+
+ version("3.3.0", sha256="b748b8e03f4e7ae816157d7b9bb2fc6b1fb2fee1d5fd3399329b646bb75861ec")
+
+ variant("plotting", default=False, description="Build with matplotlib support.")
+ variant(
+ "constrained_solution_tracking",
+ default=False,
+ description="Build with moarchiving support.",
+ )
+
+ depends_on("py-setuptools", type="build")
+ depends_on("py-numpy", type=("build", "run"))
+ depends_on("py-matplotlib", type=("build", "run"), when="+plotting")
+ depends_on("py-moarchiving", type=("build", "run"), when="+constrained_solution_tracking")