Skip to content
Snippets Groups Projects
Unverified Commit 72177b6e authored by Adam J. Stewart's avatar Adam J. Stewart Committed by GitHub
Browse files

Add latest version of py-tables (#13291)

* Add latest version of py-tables

* setup_environment -> setup_build_environment
parent 50900716
No related branches found
No related tags found
No related merge requests found
...@@ -11,12 +11,13 @@ class PyTables(PythonPackage): ...@@ -11,12 +11,13 @@ class PyTables(PythonPackage):
efficiently and easily cope with extremely large amounts of data.""" efficiently and easily cope with extremely large amounts of data."""
homepage = "http://www.pytables.org/" homepage = "http://www.pytables.org/"
url = "https://github.com/PyTables/PyTables/archive/v3.5.2.tar.gz" url = "https://github.com/PyTables/PyTables/archive/v3.6.0.tar.gz"
import_modules = [ import_modules = [
'tables', 'tables.misc', 'tables.nodes', 'tables.scripts' 'tables', 'tables.misc', 'tables.nodes', 'tables.scripts'
] ]
version('3.6.0', sha256='2dcd077f42b195f48aa00f5a720b79189ea92fba0d16ad35e2881e403ba6914e')
version('3.5.2', sha256='e4fc6f1194f02a8b10ff923e77364fb70710592f620d7de35f4d4e064dc70e91') version('3.5.2', sha256='e4fc6f1194f02a8b10ff923e77364fb70710592f620d7de35f4d4e064dc70e91')
version('3.4.4', sha256='c9682c0f35d8175e12bbd38d925bdb606d47b7c8e358ba056a9dbf3b1f183114') version('3.4.4', sha256='c9682c0f35d8175e12bbd38d925bdb606d47b7c8e358ba056a9dbf3b1f183114')
version('3.3.0', sha256='dceb15fef556a2775121bcc695561df4ff0e09248e0ce3a2d58f5244a9f61421') version('3.3.0', sha256='dceb15fef556a2775121bcc695561df4ff0e09248e0ce3a2d58f5244a9f61421')
...@@ -28,12 +29,13 @@ class PyTables(PythonPackage): ...@@ -28,12 +29,13 @@ class PyTables(PythonPackage):
variant('lzo', default=False, description='Support for lzo compression') variant('lzo', default=False, description='Support for lzo compression')
# requirements.txt # requirements.txt
depends_on('python@3.5:', when='@3.4:', type=('build', 'run'))
depends_on('python@2.6:', type=('build', 'run')) depends_on('python@2.6:', type=('build', 'run'))
depends_on('py-setuptools', type='build') depends_on('py-setuptools', type='build')
depends_on('py-cython', type='build') depends_on('py-cython@0.21:', type='build')
depends_on('py-numpy@1.9.3:', type=('build', 'run')) depends_on('py-numpy@1.9.3:', type=('build', 'run'))
depends_on('py-numexpr@2.6.2:', type=('build', 'run')) depends_on('py-numexpr@2.6.2:', type=('build', 'run'))
depends_on('py-six@1.9.0:', type=('build', 'run')) depends_on('py-six@1.9.0:', when='@:3.5', type=('build', 'run'))
depends_on('py-mock@2.0:', type='test') depends_on('py-mock@2.0:', type='test')
# tables/req_versions.py # tables/req_versions.py
depends_on('hdf5@1.8.4:1.8.999', when='@:3.3.99') depends_on('hdf5@1.8.4:1.8.999', when='@:3.3.99')
...@@ -45,11 +47,11 @@ class PyTables(PythonPackage): ...@@ -45,11 +47,11 @@ class PyTables(PythonPackage):
depends_on('bzip2', when='+bzip2') depends_on('bzip2', when='+bzip2')
depends_on('lzo', when='+lzo') depends_on('lzo', when='+lzo')
def setup_environment(self, spack_env, run_env): def setup_build_environment(self, env):
spack_env.set('HDF5_DIR', self.spec['hdf5'].prefix) env.set('HDF5_DIR', self.spec['hdf5'].prefix)
if '+bzip2' in self.spec: if '+bzip2' in self.spec:
spack_env.set('BZIP2_DIR', self.spec['bzip2'].prefix) env.set('BZIP2_DIR', self.spec['bzip2'].prefix)
if '+lzo' in self.spec: if '+lzo' in self.spec:
spack_env.set('LZO_DIR', self.spec['lzo'].prefix) env.set('LZO_DIR', self.spec['lzo'].prefix)
if '^c-blosc' in self.spec: if '^c-blosc' in self.spec:
spack_env.set('BLOSC_DIR', self.spec['c-blosc'].prefix) 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