Unverified Commit 9f6f6569 authored by Frank Lee's avatar Frank Lee Committed by GitHub
Browse files

[setup] use env var instead of option for cuda ext (#839)

parent 943982d2
...@@ -9,8 +9,7 @@ this_dir = os.path.dirname(os.path.abspath(__file__)) ...@@ -9,8 +9,7 @@ this_dir = os.path.dirname(os.path.abspath(__file__))
build_cuda_ext = True build_cuda_ext = True
ext_modules = [] ext_modules = []
if '--no_cuda_ext' in sys.argv: if int(os.environ.get('NO_CUDA_EXT', '0')) == 1:
sys.argv.remove('--no_cuda_ext')
build_cuda_ext = False build_cuda_ext = False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment