Skip to content

Commit

Permalink
Fix ninja build, and use it (#325)
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
  • Loading branch information
ezyang authored May 10, 2023
1 parent 13d7a2c commit 20c3dd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 20c3dd9

Please sign in to comment.