4545 /opt/python/cp310-cp310/bin/python scripts/download_artifacts.py c2pa-v0.55.0 &&
4646 for PYBIN in /opt/python/cp3{10,11}-*/bin; do
4747 \${PYBIN}/pip install --upgrade pip wheel &&
48- \${PYBIN}/python setup.py bdist_wheel
48+ CFLAGS="-I/opt/python/cp310-cp310/include/python3.10" LDFLAGS="-L/opt/python/cp310-cp310/lib" \${PYBIN}/python setup.py bdist_wheel --plat-name manylinux_2_28_x86_64
4949 done &&
5050 for whl in /io/dist/*.whl; do
5151 auditwheel repair \"\$whl\" --plat manylinux_2_28_x86_64 -w /io/dist/
@@ -72,26 +72,54 @@ jobs:
7272 New-Item -ItemType Directory -Force -Path src/c2pa/libs
7373 if (Test-Path dist) { Remove-Item -Recurse -Force dist }
7474 if (Test-Path build) { Remove-Item -Recurse -Force build }
75-
75+
7676 # Install dependencies
7777 pip install -r requirements.txt
7878 pip install -r requirements-dev.txt
7979 pip install wheel
80-
80+
8181 # Download native artifacts
8282 python scripts/download_artifacts.py c2pa-v0.55.0
83-
83+
8484 # Build wheel
8585 python setup.py bdist_wheel --plat-name win_amd64
8686
8787 - name : Build macOS wheel (Intel)
8888 if : runner.os == 'macOS' && runner.arch == 'x64'
8989 run : |
90+ # Create necessary directories
91+ mkdir -p artifacts
92+ mkdir -p src/c2pa/libs
93+ rm -rf dist build
94+
95+ # Install dependencies
96+ pip install -r requirements.txt
97+ pip install -r requirements-dev.txt
98+ pip install wheel
99+
100+ # Download native artifacts
101+ python scripts/download_artifacts.py c2pa-v0.55.0
102+
103+ # Build wheel
90104 python setup.py bdist_wheel --plat-name macosx_10_9_x86_64
91105
92106 - name : Build macOS wheel (Apple Silicon)
93107 if : runner.os == 'macOS' && runner.arch == 'arm64'
94108 run : |
109+ # Create necessary directories
110+ mkdir -p artifacts
111+ mkdir -p src/c2pa/libs
112+ rm -rf dist build
113+
114+ # Install dependencies
115+ pip install -r requirements.txt
116+ pip install -r requirements-dev.txt
117+ pip install wheel
118+
119+ # Download native artifacts
120+ python scripts/download_artifacts.py c2pa-v0.55.0
121+
122+ # Build wheel
95123 python setup.py bdist_wheel --plat-name macosx_11_0_arm64
96124
97125 - name : Log wheel filename
0 commit comments