Skip to content

Commit 461f2b8

Browse files
fix: fix cffi build
1 parent 2dcae0c commit 461f2b8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/wheels_osx.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ jobs:
2222
run: python -m pip install cibuildwheel
2323
- name: Build lib
2424
run: python setup.py build_lib
25+
- name: Build cffi
26+
run: python setup.py build_cffi
2527

2628

29+
2730
- name: Build wheels
2831
run: python -m cibuildwheel --output-dir wheelhouse
2932
env:

sciencemode/_cffi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,9 @@ def visit_FuncDecl(self, node):
245245
try:
246246
ast = pycparser.parse_file(os.sep.join([include_dir, header]), **pycparser_args)
247247
collector.visit(ast)
248-
print(f"Successfully parsed {header}")
248+
print(f"Successfully parsed {header}")
249249
except Exception as e:
250-
print(f"Failed to parse {header}: {e}")
250+
print(f"Failed to parse {header}: {e}")
251251
# Don't continue with broken parsing - this should work
252252
raise
253253

@@ -297,7 +297,7 @@ def visit_FuncDecl(self, node):
297297

298298
ffi.cdef(cdef)
299299

300-
print("CFFI configuration completed successfully!")
300+
print("CFFI configuration completed successfully!")
301301

302302
# Optional: save for debugging
303303
if False:

0 commit comments

Comments
 (0)