File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
import sys
2
- from typing import Type
2
+ from typing import Type , Optional
3
3
4
4
import os
5
5
import shutil
@@ -125,6 +125,7 @@ def build_nova_physics():
125
125
126
126
127
127
NOVA_TO_LINK = Path ("dummy/path" )
128
+ EXTENSION : Optional [Extension ] = None
128
129
129
130
BUILD_BINARIES = "--dont-build-binaries" not in sys .argv
130
131
if not BUILD_BINARIES :
@@ -178,6 +179,8 @@ def pre_build(self):
178
179
global NOVA_TO_LINK
179
180
innit_checks ()
180
181
NOVA_TO_LINK = get_nova_to_link ().relative_to (PACKAGE_DIR )
182
+ if EXTENSION is not None :
183
+ EXTENSION .extra_objects = [str (NOVA_TO_LINK )]
181
184
self ._old_run ()
182
185
183
186
@@ -186,6 +189,7 @@ def generate_cmd_class(orig: Type[DistCommand]):
186
189
187
190
188
191
def main ():
192
+ global EXTENSION
189
193
innit_checks ()
190
194
191
195
nova_to_link = str (NOVA_TO_LINK )
@@ -204,6 +208,8 @@ def main():
204
208
optional = False
205
209
)
206
210
211
+ EXTENSION = extension
212
+
207
213
print (
208
214
"See https://github.com/gresm/nova-physics-python-fixed/blob/master/troubleshooting-guide.md if error occurred "
209
215
"to see whether there is solution for your problem."
You can’t perform that action at this time.
0 commit comments