[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:
parent
0baaeec58d
commit
d6f19eeed2
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue