From 2e4a19013ec21f8a360f25a410f8b7bad09190e4 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Tue, 9 May 2023 07:31:20 -0700 Subject: [PATCH] Fix ninja build, and use it Signed-off-by: Edward Z. Yang --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index b960c9e4..5fc19f20 100644 --- a/setup.py +++ b/setup.py @@ -112,7 +112,7 @@ def get_extensions(): if suffix == 'cuda' and osp.exists(path): sources += [path] - phmap_dir = "third_party/parallel-hashmap" + phmap_dir = osp.abspath("third_party/parallel-hashmap") Extension = CppExtension if suffix == 'cpu' else CUDAExtension extension = Extension( @@ -167,7 +167,7 @@ def get_extensions(): ext_modules=get_extensions() if not BUILD_DOCS else [], cmdclass={ 'build_ext': - BuildExtension.with_options(no_python_abi_suffix=True, use_ninja=False) + BuildExtension.with_options(no_python_abi_suffix=True) }, packages=find_packages(), include_package_data=include_package_data,