Skip to content

Commit f8760e9

Browse files
fix: plattform specific cffi def script
1 parent 66b2f02 commit f8760e9

File tree

6 files changed

+655
-18
lines changed

6 files changed

+655
-18
lines changed

.github/workflows/wheels_arm64.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ jobs:
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:

.github/workflows/wheels_linux.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

.github/workflows/wheels_osx.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

.github/workflows/wheels_win_64.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
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

0 commit comments

Comments
 (0)