File tree Expand file tree Collapse file tree 6 files changed +655
-18
lines changed
Expand file tree Collapse file tree 6 files changed +655
-18
lines changed Original file line number Diff line number Diff line change 3131 run : python -m pip install cibuildwheel
3232 - name : Build lib
3333 run : python setup.py build_lib
34-
34+ - name : Build cdef
35+ run : python generate_cffi_definitions.py
36+
37+
3538 - name : Build wheels
3639 run : python -m cibuildwheel --output-dir wheelhouse
3740 env :
Original file line number Diff line number Diff line change @@ -34,12 +34,16 @@ jobs:
3434 run : python -m pip install cibuildwheel
3535 - name : Build lib
3636 run : python setup.py build_lib
37+ - name : Build cdef
38+ run : python generate_cffi_definitions.py
3739
3840 - name : Build wheels
3941 run : python -m cibuildwheel --output-dir wheelhouse
4042 env :
4143 # Override pyproject.toml settings if needed
4244 CIBW_BUILD_VERBOSITY : 1
45+ # Ensure CFFI can find the static library during compilation
46+ CIBW_ENVIRONMENT : " SMPT_LIB_DIR=./lib SMPT_INCLUDE_DIR=./smpt/ScienceMode_Library/include"
4347
4448 - uses : actions/upload-artifact@v4
4549 with :
Original file line number Diff line number Diff line change @@ -22,13 +22,18 @@ jobs:
2222 run : python -m pip install cibuildwheel
2323 - name : Build lib
2424 run : python setup.py build_lib
25+ - name : Build cdef
26+ run : python generate_cffi_definitions.py
27+
2528
2629 - name : Build wheels
2730 run : python -m cibuildwheel --output-dir wheelhouse
2831 env :
2932 # Override pyproject.toml settings if needed
3033 CIBW_BUILD_VERBOSITY : 1
3134 MACOSX_DEPLOYMENT_TARGET : 14.0
35+ # Ensure CFFI can find the static library during compilation
36+ CIBW_ENVIRONMENT : " SMPT_LIB_DIR=./lib SMPT_INCLUDE_DIR=./smpt/ScienceMode_Library/include"
3237
3338 - uses : actions/upload-artifact@v4
3439 with :
Original file line number Diff line number Diff line change 2626 # Build the C library first
2727 - name : Build lib
2828 run : python setup.py build_lib
29+ - name : Build cdef
30+ run : python generate_cffi_definitions.py
31+
2932
3033 # This will now create platform-specific wheels with compiled CFFI extensions
3134 - name : Build wheels
You can’t perform that action at this time.
0 commit comments