summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-pyarrow/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/py-pyarrow/package.py')
-rw-r--r--var/spack/repos/builtin/packages/py-pyarrow/package.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/py-pyarrow/package.py b/var/spack/repos/builtin/packages/py-pyarrow/package.py
index 7b0b2054d8..b5524ba9a0 100644
--- a/var/spack/repos/builtin/packages/py-pyarrow/package.py
+++ b/var/spack/repos/builtin/packages/py-pyarrow/package.py
@@ -15,6 +15,7 @@ class PyPyarrow(PythonPackage, CudaPackage):
homepage = "https://arrow.apache.org"
pypi = "pyarrow/pyarrow-0.17.1.tar.gz"
+ version("10.0.1", sha256="1a14f57a5f472ce8234f2964cd5184cccaa8df7e04568c64edc33b23eb285dd5")
version("8.0.0", sha256="4a18a211ed888f1ac0b0ebcb99e2d9a3e913a481120ee9b1fe33d3fedb945d4e")
version("7.0.0", sha256="da656cad3c23a2ebb6a307ab01d35fce22f7850059cffafcb90d12590f8f4f38")
version("4.0.1", sha256="11517f0b4f4acbab0c37c674b4d1aad3c3dfea0f6b1bb322e921555258101ab3")
@@ -27,6 +28,7 @@ class PyPyarrow(PythonPackage, CudaPackage):
variant("parquet", default=False, description="Build with Parquet support")
variant("orc", default=False, description="Build with orc support")
+ variant("dataset", default=True, description="Build with Dataset support")
depends_on("cmake@3.0.0:", type="build")
depends_on("pkgconfig", type="build")
@@ -35,13 +37,13 @@ class PyPyarrow(PythonPackage, CudaPackage):
depends_on("python@3.7:", type=("build", "run"), when="@7.0.0:")
depends_on("py-setuptools", type="build")
depends_on("py-setuptools@38.6.0:", type="build", when="@7.0.0:")
+ depends_on("py-setuptools@40.1.0:", type="build", when="@10.0.1:")
depends_on("py-setuptools-scm", type="build", when="@0.15.0:")
depends_on("py-cython", type="build")
depends_on("py-cython@0.29:", type="build", when="@0.15.0:")
depends_on("py-cython@0.29.22:", type="build", when="@8.0.0:")
depends_on("py-numpy@1.14:", type=("build", "run"), when="@0.15.0:")
depends_on("py-numpy@1.16.6:", type=("build", "run"), when="@3.0.0:")
- depends_on("py-six@1.0.0:", type=("build", "run"), when="@0.15.0")
arrow_versions = (
"@0.9.0",
@@ -53,6 +55,7 @@ class PyPyarrow(PythonPackage, CudaPackage):
"@4.0.1",
"@7.0.0",
"@8.0.0",
+ "@10.0.1",
)
for v in arrow_versions:
depends_on("arrow+python" + v, when=v)
@@ -62,6 +65,16 @@ class PyPyarrow(PythonPackage, CudaPackage):
patch("for_aarch64.patch", when="@0 target=aarch64:")
+ def setup_build_environment(self, env):
+ if spec.satisfies("+parquet"):
+ env.set("PYARROW_PARQUET", "1")
+ if spec.satisfies("+cuda"):
+ env.set("PYARROW_WITH_CUDA", "1")
+ if spec.satisfies("+orc"):
+ env.set("PYARROW_WITH_ORC", "1")
+ if spec.satisfies("+dataset"):
+ env.set("PYARROW_WITH_DATASET", "1")
+
def install_options(self, spec, prefix):
args = []
if spec.satisfies("+parquet"):
@@ -70,4 +83,6 @@ class PyPyarrow(PythonPackage, CudaPackage):
args.append("--with-cuda")
if spec.satisfies("+orc"):
args.append("--with-orc")
+ if spec.satisfies("+dataset"):
+ args.append("--with-dataset")
return args