summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuela Kuhn <36827019+manuelakuhn@users.noreply.github.com>2021-10-01 03:19:41 +0200
committerGitHub <noreply@github.com>2021-10-01 01:19:41 +0000
commitc58cd83e38402b32782bc7b1b9467770698f4113 (patch)
tree6d04b3e290a4b1e8d1078cb660f0fd9d2000165c
parent032ce20171d0e0a7251c483dc0b39dd59180c9be (diff)
downloadspack-c58cd83e38402b32782bc7b1b9467770698f4113.tar.gz
spack-c58cd83e38402b32782bc7b1b9467770698f4113.tar.bz2
spack-c58cd83e38402b32782bc7b1b9467770698f4113.tar.xz
spack-c58cd83e38402b32782bc7b1b9467770698f4113.zip
py-shiboken2: add new package (#26390)
-rw-r--r--var/spack/repos/builtin/packages/py-shiboken2/package.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-shiboken2/package.py b/var/spack/repos/builtin/packages/py-shiboken2/package.py
new file mode 100644
index 0000000000..8e5c1c5e28
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-shiboken2/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)
+
+import platform
+
+from spack import *
+
+
+class PyShiboken2(Package):
+ """Python / C++ bindings helper module."""
+
+ homepage = "https://www.pyside.org/"
+
+ if platform.system() == "Linux" and platform.machine() == "x86_64":
+ version('5.15.2',
+ url="https://files.pythonhosted.org/packages/cp35.cp36.cp37.cp38.cp39/s/shiboken2/shiboken2-5.15.2-5.15.2-cp35.cp36.cp37.cp38.cp39-abi3-manylinux1_x86_64.whl",
+ sha256='4aee1b91e339578f9831e824ce2a1ec3ba3a463f41fda8946b4547c7eb3cba86',
+ expand=False)
+
+ elif platform.system() == "Linux" and platform.machine() == "maxosx":
+ version('5.15.2',
+ url="https://files.pythonhosted.org/packages/cp35.cp36.cp37.cp38.cp39/s/shiboken2/shiboken2-5.15.2-5.15.2-cp35.cp36.cp37.cp38.cp39-abi3-macosx_10_13_intel.whl",
+ sha256='edc12a4df2b5be7ca1e762ab94e331ba9e2fbfe3932c20378d8aa3f73f90e0af',
+ expand=False)
+
+ extends('python')
+ depends_on('py-pip', type='build')
+
+ depends_on('python@3.5:3.9', type=('build', 'run'))
+
+ def install(self, spec, prefix):
+ pip = which('pip')
+ pip('install', self.stage.archive_file, '--prefix={0}'.format(prefix))