Skip to content

Commit 1b92b74

Browse files
Use unreleased cibuildwheel in wheels CI job
1 parent 2448ba5 commit 1b92b74

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

.github/workflows/wheels.yml

+9-16
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,9 @@ jobs:
201201
upload_wheels
202202
203203
# Build Pyodide wheels and upload them to Anaconda.org
204-
# NOTE: this job must be kept in sync with the emscripten job in unit-tests.yml.
205-
# The difference is that this does not run the tests after building the wheels.
204+
# NOTE: this job is similar to the one in unit-tests.yml except for that fact
205+
# that this does not run the tests after building the wheels and uses cibuildwheel
206+
# instead of a regular Pyodide setup.
206207
build_pyodide_wheels:
207208
name: Build Pyodide wheels
208209
# Run on schedule, manual (workflow dispatch), and push events
@@ -222,22 +223,14 @@ jobs:
222223
id: setup-python
223224
uses: actions/setup-python@v5
224225
with:
225-
python-version: '3.11.3'
226+
python-version: '3.12'
226227

227-
- name: Set up Emscripten toolchain
228-
uses: mymindstorm/setup-emsdk@v14
228+
- name: Build WASM wheel for pandas
229+
uses: pypa/cibuildwheel@main
229230
with:
230-
version: '3.1.46'
231-
actions-cache-folder: emsdk-cache
232-
233-
- name: Install pyodide-build
234-
run: pip install "pyodide-build==0.25.1"
235-
236-
- name: Build pandas for Pyodide
237-
# Here, upload_wheels.sh requires artifacts to be in ./wheelhouse/
238-
run: |
239-
mkdir -p wheelhouse
240-
pyodide build --outdir wheelhouse
231+
output-dir: ./wheelhouse
232+
env:
233+
CIBW_PLATFORM: pyodide
241234

242235
- uses: actions/upload-artifact@v4
243236
with:

0 commit comments

Comments
 (0)