Skip to content
Snippets Groups Projects
Commit c575cc46 authored by Glenn Johnson's avatar Glenn Johnson Committed by Elizabeth Fischer
Browse files

The py-pytables package depends on hdf5-blosc (#11823)

* The py-pytables package depends on hdf5-blosc

* Further modifications to py-pytables package

The 3.2.2 version of py-pytables should still build with internal blosc.
The issue with locking in a multithreaded environment has been
fixed/worked around in version 3.3.

Also, add bzip2 and lzo variants.
parent 1ec3d784
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,16 @@ class PyPytables(PythonPackage):
version('3.2.2', '7cbb0972e4d6580f629996a5bed92441',
url='https://github.com/PyTables/PyTables/archive/v.3.2.2.tar.gz')
variant('bzip2', default=False, description='Support for bzip2 compression')
variant('lzo', default=False, description='Support for lzo compression')
depends_on('bzip2', when='+bzip2')
depends_on('lzo', when='+lzo')
# Versions prior to 3.3 must build with the internal blosc due to a lock
# problem in a multithreaded environment.
depends_on('hdf5-blosc', when="@3.3.0:")
depends_on('hdf5@1.8.0:1.8.999', when="@:3.3.99")
depends_on('hdf5@1.8.0:1.10.999', when="@3.4.0:")
depends_on('py-numpy@1.8.0:', type=('build', 'run'))
......@@ -27,3 +37,9 @@ class PyPytables(PythonPackage):
def setup_environment(self, spack_env, run_env):
spack_env.set('HDF5_DIR', self.spec['hdf5'].prefix)
if '+bzip2' in self.spec:
spack_env.set('BZIP2_DIR', self.spec['bzip2'].prefix)
if '+lzo' in self.spec:
spack_env.set('LZO_DIR', self.spec['lzo'].prefix)
if '+hdf5-blosc' in self.spec:
spack_env.set('BLOSC_DIR', self.spec['c-blosc'].prefix)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment