summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2020-05-12 14:33:10 -0500
committerGitHub <noreply@github.com>2020-05-12 14:33:10 -0500
commit6b41fb88a988cf35099ea5f5ecf7a3b42a5d7e1b (patch)
treeef3ba2fa93848c46ca842b483d0d69cab9645231
parent9bdf4564dbf1276881a1e25bb26f9ea42e606346 (diff)
downloadspack-6b41fb88a988cf35099ea5f5ecf7a3b42a5d7e1b.tar.gz
spack-6b41fb88a988cf35099ea5f5ecf7a3b42a5d7e1b.tar.bz2
spack-6b41fb88a988cf35099ea5f5ecf7a3b42a5d7e1b.tar.xz
spack-6b41fb88a988cf35099ea5f5ecf7a3b42a5d7e1b.zip
py-threadpoolctl: add new package (#16606)
-rw-r--r--var/spack/repos/builtin/packages/py-threadpoolctl/package.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-threadpoolctl/package.py b/var/spack/repos/builtin/packages/py-threadpoolctl/package.py
new file mode 100644
index 0000000000..f28c9a37b5
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-threadpoolctl/package.py
@@ -0,0 +1,19 @@
+# Copyright 2013-2020 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)
+
+
+class PyThreadpoolctl(PythonPackage):
+ """Python helpers to limit the number of threads used in the
+ threadpool-backed of common native libraries used for scientific
+ computing and data science (e.g. BLAS and OpenMP)."""
+
+ homepage = "https://github.com/joblib/threadpoolctl"
+ url = "https://pypi.io/packages/source/t/threadpoolctl/threadpoolctl-2.0.0.tar.gz"
+
+ import_modules = ['threadpoolctl']
+
+ version('2.0.0', sha256='48b3e3e9ee079d6b5295c65cbe255b36a3026afc6dde3fb49c085cd0c004bbcf')
+
+ depends_on('python@3.5:', type=('build', 'run'))