summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorbernhardkaindl <43588962+bernhardkaindl@users.noreply.github.com>2021-09-28 17:33:29 +0200
committerGitHub <noreply@github.com>2021-09-28 10:33:29 -0500
commitd00c9b47f2ad5f50e5ec0ac00577279d9a28b183 (patch)
treebe0510536d705b536cac80439902936c7b7a2294 /var
parent79808f92ae44ade8cdf58d164817a57047494b85 (diff)
downloadspack-d00c9b47f2ad5f50e5ec0ac00577279d9a28b183.tar.gz
spack-d00c9b47f2ad5f50e5ec0ac00577279d9a28b183.tar.bz2
spack-d00c9b47f2ad5f50e5ec0ac00577279d9a28b183.tar.xz
spack-d00c9b47f2ad5f50e5ec0ac00577279d9a28b183.zip
py-tomopy: version bump and master, add new deps, make runtest pass (#26252)
Current py-tomopy has many features and dependencies, add them.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-tomopy/package.py36
1 files changed, 32 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/py-tomopy/package.py b/var/spack/repos/builtin/packages/py-tomopy/package.py
index 4eac916511..81856f816a 100644
--- a/var/spack/repos/builtin/packages/py-tomopy/package.py
+++ b/var/spack/repos/builtin/packages/py-tomopy/package.py
@@ -13,15 +13,43 @@ class PyTomopy(PythonPackage):
homepage = "https://tomopy.readthedocs.io/en/latest/index.html"
url = "https://github.com/tomopy/tomopy/archive/1.0.0.tar.gz"
+ git = 'https://github.com/tomopy/tomopy.git'
+ version('master', branch='master')
+ version('1.10.4', sha256='2f15edda11b4337a1a5560684fcf8f28a35c5035932b22b842ce728bd13fba01')
version('1.0.0', sha256='ee45f7a062e5a66d6f18a904d2e204e48d85a1ce1464156f9e2f6353057dfe4c')
+ # GPU accel needs PTL which is a git submodule. Thus, we can only build it on master
+ depends_on('cuda', when='@master')
+ # The shared opencv is not found by during runtest. Not using GOT/PLT is faster too
+ depends_on('opencv+imgproc~shared@3.4:', when='@master')
+ # During the runtest, the shared MKL libs aren't found yet:
+ # depends_on('intel-mkl~shared')
+ depends_on('cmake@3.17:', type=('build'))
+ depends_on('ninja', type=('build'))
+ depends_on('py-setuptools-scm', type=('build'))
+ depends_on('py-setuptools-scm-git-archive', type=('build'))
+ # Note: The module name of py-scikit-build is skbuild:
+ depends_on('py-scikit-build', type=('build'))
+ depends_on('py-scikit-image@0.17:', type=('build', 'run'))
+ depends_on('py-numpy+blas', type=('build', 'run'))
+ depends_on('py-pyfftw', type=('build', 'run'), when='@1.0:1.9')
+ depends_on('py-numexpr', type=('test'))
+ depends_on('py-scipy', type=('build', 'test', 'run'))
depends_on('py-setuptools', type='build')
- depends_on('py-numpy', type=('build', 'run'))
depends_on('py-h5py', type=('build', 'run'))
- depends_on('py-scipy', type=('build', 'run'))
depends_on('py-six', type=('build', 'run'))
- depends_on('py-scikit-image', type=('build', 'run'))
depends_on('py-pywavelets', type=('build', 'run'))
- depends_on('py-pyfftw', type=('build', 'run'))
depends_on('py-dxchange', type=('build', 'run'))
+
+ @when('@1.10:')
+ def build_args(self, spec, prefix):
+ args = ['--enable-arch']
+ if 'avx512' in self.spec.target:
+ args.append('--enable-avx512')
+
+ # PTL is a git submodule, we only fetch it's source by git-submodule on master:
+ if self.version != Version('master'):
+ args.append('--disable-tasking')
+
+ return args