diff options
author | arezaii <Ahmad.rezaii@hpe.com> | 2024-10-07 17:20:06 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-07 16:20:06 -0700 |
commit | f48c36fc2c61dd7ab377ec432794d590db7a51e0 (patch) | |
tree | bff39078b94e9201ea1332108b87ba2b35fa3b7b | |
parent | a09b9f06599ef12f8250608305e6b43404901f92 (diff) | |
download | spack-f48c36fc2c61dd7ab377ec432794d590db7a51e0.tar.gz spack-f48c36fc2c61dd7ab377ec432794d590db7a51e0.tar.bz2 spack-f48c36fc2c61dd7ab377ec432794d590db7a51e0.tar.xz spack-f48c36fc2c61dd7ab377ec432794d590db7a51e0.zip |
add bz2 variant, fix brotli dependency (#46803)
-rw-r--r-- | var/spack/repos/builtin/packages/arrow/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/arrow/package.py b/var/spack/repos/builtin/packages/arrow/package.py index 7089454b67..994579cdb9 100644 --- a/var/spack/repos/builtin/packages/arrow/package.py +++ b/var/spack/repos/builtin/packages/arrow/package.py @@ -45,6 +45,8 @@ class Arrow(CMakePackage, CudaPackage): depends_on("cxx", type="build") # generated depends_on("boost@1.60: +filesystem +system") + depends_on("brotli", when="+brotli") + depends_on("bzip2", when="+bz2") depends_on("cmake@3.2.0:", type="build") depends_on("flatbuffers") conflicts("%gcc@14", when="@:15.0.1") # https://github.com/apache/arrow/issues/40009 @@ -78,6 +80,7 @@ class Arrow(CMakePackage, CudaPackage): depends_on("zstd", when="@:8") variant("brotli", default=False, description="Build support for Brotli compression") + variant("bz2", default=False, description="Build support for bzip2 compression") variant( "build_type", default="Release", @@ -158,6 +161,7 @@ class Arrow(CMakePackage, CudaPackage): args.append(self.define_from_variant("ARROW_PYTHON", "python")) args.append(self.define_from_variant("ARROW_TENSORFLOW", "tensorflow")) args.append(self.define_from_variant("ARROW_WITH_BROTLI", "brotli")) + args.append(self.define_from_variant("ARROW_WITH_BZ2", "bz2")) args.append(self.define_from_variant("ARROW_WITH_LZ4", "lz4")) args.append(self.define_from_variant("ARROW_WITH_SNAPPY", "snappy")) args.append(self.define_from_variant("ARROW_WITH_ZLIB", "zlib")) |