Skip to content

Commit 2f21fe2

Browse files
Fix build command
1 parent 79e8133 commit 2f21fe2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

setup.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@ def get_ext_modules():
6060
return ext_modules
6161

6262

63+
class CustomBuildExtension(BuildExtension):
64+
def __init__(self, *args, **kwargs):
65+
super().__init__(*args, no_python_abi_suffix=True, use_ninja=False, **kwargs)
66+
67+
6368
def get_cmdclass():
64-
return {
65-
"build_ext": BuildExtension.with_options(
66-
no_python_abi_suffix=True, use_ninja=False
67-
)
68-
}
69+
return {"build_ext": CustomBuildExtension}
6970

7071

7172
requirements = ["torch>=1.1.0", "numba"]

0 commit comments

Comments
 (0)