py-tables: add 3.9.0 (#40340)

* py-tables: add 3.9.0

* Add conflict with apple-clang
This commit is contained in:
Manuela Kuhn 2023-10-08 17:28:13 +02:00 committed by GitHub
parent 00396fbe6c
commit 6b9e103305
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,10 @@ class PyTables(PythonPackage):
homepage = "https://www.pytables.org/"
pypi = "tables/tables-3.6.1.tar.gz"
git = "https://github.com/PyTables/PyTables.git"
version("master", branch="master")
version("3.9.0", sha256="27c9ca14c359d875caf945a6a527c12690e017650402dd17d8eb8b6caf6687d5")
version("3.8.0", sha256="34f3fa2366ce20b18f1df573a77c1d27306ce1f2a41d9f9eff621b5192ea8788")
version("3.7.0", sha256="e92a887ad6f2a983e564a69902de4a7645c30069fc01abd353ec5da255c5e1fe")
version("3.6.1", sha256="49a972b8a7c27a8a173aeb05f67acb45fe608b64cd8e9fa667c0962a60b71b49")
@ -27,38 +30,43 @@ class PyTables(PythonPackage):
variant("lzo", default=False, description="Support for lzo compression")
# pyproject.toml
depends_on("py-setuptools@61:", when="@3.9:", type="build")
depends_on("py-setuptools@42:", when="@3.7:", type="build")
depends_on("py-setuptools", type="build")
depends_on("py-cython@0.29.32:", when="@3.9:", type="build")
depends_on("py-cython@0.29.21:", when="@3.7:3.8", type=("build", "run"))
depends_on("py-cython@0.21:", type="build")
# setup.py
depends_on("python@3.8:", when="@3.8:", type=("build", "run"))
# requirements.txt
depends_on("py-cython@0.29.21:", when="@3.7:", type=("build", "run"))
depends_on("py-cython@0.21:", type="build")
depends_on("py-numpy@1.19:", when="@3.8:", 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-blosc2@2.0", type=("build", "run"))
depends_on("py-packaging", when="@3.7:", type=("build", "run"))
depends_on("py-py-cpuinfo", when="@3.8:", type=("build", "run"))
depends_on("py-blosc2@2.2.8:", when="@3.9:", type=("build", "run"))
depends_on("py-blosc2@2.0", when="@3.8", type=("build", "run"))
# tables/req_versions.py
depends_on("hdf5@1.8.4:", when="@3.4.0:")
depends_on("hdf5@1.10.5:", when="@3.8:")
depends_on("hdf5@1.8.4:", when="@3.4:")
depends_on("hdf5@1.8.4:1.8", when="@:3.3")
# Historical dependencies
depends_on("py-six@1.9:", when="@:3.5", type=("build", "run"))
# tables/req_versions.py
# Versions prior to 3.3 must build with the internal blosc due to a lock
# problem in a multithreaded environment.
depends_on("c-blosc@1.11.1:", when="@3.8:")
depends_on("c-blosc@1.4.1:", when="@3.3:")
depends_on("zlib-api", when="+zlib")
depends_on("bzip2", when="+bzip2")
depends_on("lzo", when="+lzo")
conflicts("%apple-clang@15:", when="@:3.8")
# Historical dependencies
depends_on("py-six@1.9:", when="@:3.5", type=("build", "run"))
def setup_build_environment(self, env):
env.set("HDF5_DIR", self.spec["hdf5"].prefix)
if "+bzip2" in self.spec: