File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 28
28
import os
29
29
from hashlib import md5
30
30
from pathlib import Path
31
+ from setup_configure import BuildConfig
31
32
32
33
33
34
def replace_or_remove (new : Path ) -> None :
@@ -318,7 +319,9 @@ def write_cython_imp(self):
318
319
self .cython_imp .write (imp )
319
320
320
321
321
- def run (config ):
322
+ def run ():
323
+ # Get configuration from environment variables
324
+ config = BuildConfig .from_env ()
322
325
lp = LineProcessor (config )
323
326
lp .run ()
324
327
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ def run(self):
152
152
153
153
# Refresh low-level defs if missing or stale
154
154
print ("Executing api_gen rebuild of defs" )
155
- api_gen .run (config )
155
+ api_gen .run ()
156
156
157
157
# Rewrite config.pxi file if needed
158
158
s = f"""\
You can’t perform that action at this time.
0 commit comments