summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJen Herting <jen@herting.cc>2021-01-25 23:34:10 -0500
committerGitHub <noreply@github.com>2021-01-25 22:34:10 -0600
commiteb60c858a0c959d6ad200324cc34d91e27d74ad3 (patch)
tree40e53847fbcaa28f65701a1b054047f88c04462a
parentf536ded3289cbdbda0b0efe92113d63d71a56ff3 (diff)
downloadspack-eb60c858a0c959d6ad200324cc34d91e27d74ad3.tar.gz
spack-eb60c858a0c959d6ad200324cc34d91e27d74ad3.tar.bz2
spack-eb60c858a0c959d6ad200324cc34d91e27d74ad3.tar.xz
spack-eb60c858a0c959d6ad200324cc34d91e27d74ad3.zip
New package: py-intel-openmp (#20748)
* [py-intel-openmp] created template * [py-intel-openmp] is wheel * [py-intel-openmp] fixed version for linux * [py-intel-openmp] removed fixmes, added homepage and description * [py-intel-openmp] added macos support * [py-intel-openmp] style fix
-rw-r--r--var/spack/repos/builtin/packages/py-intel-openmp/package.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-intel-openmp/package.py b/var/spack/repos/builtin/packages/py-intel-openmp/package.py
new file mode 100644
index 0000000000..5c304fcec1
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-intel-openmp/package.py
@@ -0,0 +1,36 @@
+# 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)
+
+import sys
+from spack import *
+
+
+class PyIntelOpenmp(Package):
+ """Intel OpenMP* Runtime Library x86_64 dynamic libraries
+ for macOS*. Intel OpenMP* Runtime Library provides OpenMP
+ API specification support in Intel C Compiler, Intel C++
+ Compiler and Intel Fortran Compiler. It helps to improve
+ performance by creating multithreaded software using shared
+ memory and running on multi-core processor systems."""
+
+ homepage = "https://pypi.org/project/intel-openmp/"
+
+ if sys.platform.startswith('linux'):
+ version('2021.1.2',
+ url='https://pypi.io/packages/py2.py3/i/intel-openmp/intel_openmp-2021.1.2-py2.py3-none-manylinux1_x86_64.whl',
+ sha256='8796797ecae99f39b27065e4a7f1f435e2ca08afba654ca57a77a2717f864dca',
+ expand=False)
+
+ if sys.platform.startswith('darwin'):
+ version('2021.1.2',
+ url='https://pypi.io/packages/py2.py3/i/intel-openmp/intel_openmp-2021.1.2-py2.py3-none-macosx_10_15_x86_64.whl',
+ sha256='2af893738b4b06cb0183746f2992169111031340b59c84a0fd4dec1ed66b80f2',
+ expand=False)
+
+ depends_on('py-pip', type='build')
+
+ def install(self, spec, prefix):
+ pip = which('pip')
+ pip('install', self.stage.archive_file, '--prefix={0}'.format(prefix))