Skip installing thrust support in case nvcc not found in PATH.
@@ -271,6 +271,13 @@ def make_extensions(options, compiler, use_cython):
elif compiler.compiler_type == 'msvc':
args.append('/openmp')
+ if module['name'] == 'thrust':
+ if build.get_nvcc_path() is None:
+ utils.print_warning(
+ 'Cannot find nvcc in PATH.',
+ 'Skip installing thrust support.')
+ continue
+
for f in module['file']:
name = module_extension_name(f)
sources = module_extension_sources(f, use_cython, no_cuda)
