From 20c3dd9829ec5a258dfa55dcc6f58439fdcb9226 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Wed, 10 May 2023 08:47:57 -0400 Subject: [PATCH] Fix ninja build, and use it (#325) 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,