File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,10 @@ jobs:
240
240
shell : bash -el {0}
241
241
- os : windows
242
242
shell : powershell
243
-
243
+
244
+ env :
245
+ POWER_GRID_MODEL_NO_BINARY_BUILD : 1
246
+
244
247
defaults :
245
248
run :
246
249
shell : ${{ matrix.shell }}
Original file line number Diff line number Diff line change @@ -139,9 +139,10 @@ def generate_build_ext(pkg_dir: Path, pkg_name: str):
139
139
print (f"Remove binary file: { bin_file } " )
140
140
bin_file .unlink ()
141
141
142
- # if we are building this in conda enviroment
143
- # we do not need extension module
144
- if "CONDA_PREFIX" in os .environ :
142
+ # By setting POWER_GRID_MODEL_NO_BINARY_BUILD we do not build the extension.
143
+ # This is usually set in conda-build recipe, so conda build process only wraps the pure Python package.
144
+ # As a user or developer, DO NOT set this environment variable unless you really know what you are doing.
145
+ if "POWER_GRID_MODEL_NO_BINARY_BUILD" in os .environ :
145
146
return {}
146
147
147
148
# fetch dependent headers
You can’t perform that action at this time.
0 commit comments