summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew W Elble <aweits@rit.edu>2021-03-03 17:06:02 -0500
committerGitHub <noreply@github.com>2021-03-03 22:06:02 +0000
commit631598014a26e99d6dde75f795399601192870cb (patch)
treeba10b4ac785d864554f8d72fbd0a3d3e68b63ded
parent10e9e142b75c6ca8bc61f688260c002201cc1b22 (diff)
downloadspack-631598014a26e99d6dde75f795399601192870cb.tar.gz
spack-631598014a26e99d6dde75f795399601192870cb.tar.bz2
spack-631598014a26e99d6dde75f795399601192870cb.tar.xz
spack-631598014a26e99d6dde75f795399601192870cb.zip
py-pycuda: new version 2020.1 (#22057)
* py-pycuda: new version 2020.1 * dep updates * deal with lib/lib64 issue
-rw-r--r--var/spack/repos/builtin/packages/py-pycuda/package.py23
1 files changed, 19 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/py-pycuda/package.py b/var/spack/repos/builtin/packages/py-pycuda/package.py
index 154a0d2d47..db5a4798ff 100644
--- a/var/spack/repos/builtin/packages/py-pycuda/package.py
+++ b/var/spack/repos/builtin/packages/py-pycuda/package.py
@@ -14,16 +14,31 @@ class PyPycuda(PythonPackage):
homepage = "https://mathema.tician.de/software/pycuda/"
pypi = "pycuda/pycuda-2019.1.2.tar.gz"
+ version('2020.1', sha256='effa3b99b55af67f3afba9b0d1b64b4a0add4dd6a33bdd6786df1aa4cc8761a5')
version('2019.1.2', sha256='ada56ce98a41f9f95fe18809f38afbae473a5c62d346cfa126a2d5477f24cc8a')
version('2016.1.2', sha256='a7dbdac7e2f0c0d2ad98f5f281d5a9d29d6673b3c20210e261b96e9a2d0b6e37')
+ @run_before('build')
+ def configure(self):
+ pyver = self.spec['python'].version.up_to(2).joined
+ boostlib = 'boost_python{0}'.format(pyver)
+ configure_args = [
+ '--no-use-shipped-boost',
+ '--boost-inc-dir={0}'.format(self.spec['boost'].prefix.include),
+ '--boost-lib-dir={0}'.format(self.spec['boost'].libs.directories[0]),
+ '--boost-python-libname={0}'.format(boostlib)
+ ]
+ python('configure.py', *configure_args)
+
depends_on('py-setuptools', type='build')
depends_on('cuda')
- depends_on('boost')
+ depends_on('boost+python')
+ depends_on('python@3.6:3.999', type=('build', 'run'), when='@2020.1:')
depends_on('py-numpy@1.6:', type=('build', 'run'))
+ depends_on('py-pytools@2011.2:', type=('build', 'run'))
depends_on('py-six', type='run')
- depends_on('py-decorator@3.2.0:', type='run')
- depends_on('py-appdirs@1.4.0:', type='run')
- depends_on('py-mako', type='run')
+ depends_on('py-decorator@3.2.0:', type=('build', 'run'))
+ depends_on('py-appdirs@1.4.0:', type=('build', 'run'))
+ depends_on('py-mako', type=('build', 'run'))
depends_on('cuda@:8.0.61', when='@2016.1.2')