You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: setup.py
+18-25
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,10 @@
23
23
24
24
fromdistutils.utilimportget_platform
25
25
26
+
26
27
classCMakeExtension(Extension):
27
-
def__init__(self, name, sourcedir=""):
28
-
Extension.__init__(self, name, sources=[])
28
+
def__init__(self, name, sourcedir=""):
29
+
Extension.__init__(self, name, sources=[])
29
30
self.sourcedir=Path(sourcedir).absolute()
30
31
31
32
@@ -34,9 +35,7 @@ class CMakeBuild(build_ext):
34
35
This class is built upon https://github.com/diegoferigo/cmake-build-extension/blob/master/src/cmake_build_extension/build_extension.py and https://github.com/pybind/cmake_example/blob/master/setup.py
35
36
"""
36
37
37
-
user_options=build_ext.user_options+ [
38
-
("define=", "D", "Define variables for CMake")
39
-
]
38
+
user_options=build_ext.user_options+ [("define=", "D", "Define variables for CMake")]
0 commit comments