[py-pyarrow] cuda and orc support (#19445)

* [py-pyarrow] telling setup.py that we want cuda support

* [py-pyarrow] added orc variant

* [py-pyarrow] passing the orc variant down the line

* [py-pyarrow] added variant description
This commit is contained in:
Jen Herting 2020-10-22 16:19:16 -04:00 committed by GitHub
parent 0baaeec58d
commit d6f19eeed2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,7 @@ class PyPyarrow(PythonPackage, CudaPackage):
version('0.9.0', sha256='7db8ce2f0eff5a00d6da918ce9f9cfec265e13f8a119b4adb1595e5b19fd6242')
variant('parquet', default=False, description="Build with Parquet support")
variant('orc', default=False, description='Build with orc support')
depends_on('cmake@3.0.0:', type='build')
depends_on('pkgconfig', type='build')
@ -44,6 +45,7 @@ class PyPyarrow(PythonPackage, CudaPackage):
depends_on('arrow+python' + v, when=v)
depends_on('arrow+parquet+python' + v, when='+parquet' + v)
depends_on('arrow+cuda' + v, when='+cuda' + v)
depends_on('arrow+orc' + v, when='+orc' + v)
phases = ['build_ext', 'install']
@ -51,4 +53,8 @@ def build_ext_args(self, spec, prefix):
args = []
if spec.satisfies('+parquet'):
args.append('--with-parquet')
if spec.satisfies('+cuda'):
args.append('--with-cuda')
if spec.satisfies('+orc'):
args.append('--with-orc')
return args