setup.py-wise, _cuda is configured and build exactly like _parquet or _orc. So 
I don't understand your analogue, especially because parquet and orc are 
disabled by default.

I suggest the following behavior:
Case 1: libarrow_gpu can be detected by cmake, then
- `python setup.py build_ext --with-cuda` will build `_cuda` extension
- `PYARROW_BUILD_CUDA=1 python setup.py build_ext` will build `_cuda` extension
- `python setup.py build_ext` will succeed, no `_cuda` extension is built
- `PYARROW_BUILD_CUDA=0 python setup.py build_ext` will succeed, no `_cuda` 
extension is built

Case 2: libarrow_gpu is not detected by cmake, then
- `python setup.py build_ext --with-cuda` will fail
- `PYARROW_BUILD_CUDA=1 python setup.py build_ext` will fail
- `python setup.py build_ext` will succeed, no `_cuda` extension is built


[ Full content available at: https://github.com/apache/arrow/pull/2536 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to