summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bouvier <contact@thomas-bouvier.io>2023-02-19 21:48:14 +0100
committerGitHub <noreply@github.com>2023-02-19 12:48:14 -0800
commit81f11d55624b9a3513d9b8f48b82dd69cf332b33 (patch)
tree4e54980f929a018bde923e70316472ecadde63f1
parent747f032ec227d61399793252e086eae7fc9fa675 (diff)
downloadspack-81f11d55624b9a3513d9b8f48b82dd69cf332b33.tar.gz
spack-81f11d55624b9a3513d9b8f48b82dd69cf332b33.tar.bz2
spack-81f11d55624b9a3513d9b8f48b82dd69cf332b33.tar.xz
spack-81f11d55624b9a3513d9b8f48b82dd69cf332b33.zip
`py-pyarrow`: fix build environment (#35567)
* `py-pyarrow`: fix build environment * Use `satisfies()` for specs
-rw-r--r--var/spack/repos/builtin/packages/py-pyarrow/package.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/py-pyarrow/package.py b/var/spack/repos/builtin/packages/py-pyarrow/package.py
index b5524ba9a0..c18ee07463 100644
--- a/var/spack/repos/builtin/packages/py-pyarrow/package.py
+++ b/var/spack/repos/builtin/packages/py-pyarrow/package.py
@@ -66,14 +66,10 @@ 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")
+ env.set("PYARROW_WITH_PARQUET", self.spec.satisfies("+parquet"))
+ env.set("PYARROW_WITH_CUDA", self.spec.satisfies("+cuda"))
+ env.set("PYARROW_WITH_ORC", self.spec.satisfies("+orc"))
+ env.set("PYARROW_WITH_DATASET", self.spec.satisfies("+dataset"))
def install_options(self, spec, prefix):
args = []