Skip to content

pyodide build regression, version flags breaking things?Β #2605

@AndrewAnnex

Description

@AndrewAnnex

Description

I am trying to debug a pyodide build of my library which I had working with tests in a test repo about 3 weeks ago, but am beginning to apply to my main project, however as of an hour ago, and without changing much I seem to get a regression where cibuildwheel is passing a "-v" flag to pyodide build causing a fatal build error (I could get far past this point yesterday/earlier this morning), I think my only major change was switching from manually calling cibuildwheel in my github action, using the latest version of cibuildwheel as I never pinned it in my pyproject.toml, to switching to 3.1.4 and the github action command.

example partial log:

Building cp312-pyodide_wasm32 wheel
CPython 3.12 Pyodide

Installing a base python environment...
                                                              βœ“ 3.20s
Setting up build environment...
                                                              βœ“ 2.50s
Installing build tools...
                                                              βœ“ 4.92s
Installing Emscripten version: 3.1.58 ...
                                                             βœ“ 31.44s
Installing Pyodide xbuildenv version: 0.27.7 ...
                                                              βœ“ 8.88s
Building wheel...
  
  + pyodide build /home/runner/work/SpiceyPy/SpiceyPy --outdir=/tmp/cibw-run-i6d6ci8v/cp312-pyodide_wasm32/built_wheel -v
  ERROR: Unrecognized options in config-settings:
    -v
  
  ERROR Backend subprocess exited when trying to invoke build_wheel
                                                              βœ• 2.68s
Error: cibuildwheel: Command ['/tmp/cibw-run-i6d6ci8v/cp312-pyodide_wasm32/build/venv/bin/pyodide', 'build', '/home/runner/work/SpiceyPy/SpiceyPy', '--outdir=/tmp/cibw-run-i6d6ci8v/cp312-pyodide_wasm32/built_wheel', '-v'] failed with code 1. 

Error: Process completed with exit code 1.

I get the same issue building locally in a ubuntu vm.

I saw that 3.2.0 was recently published, so I am wondering if maybe there is some other build version mis match, plus I am specifying in my pyproject.toml to only build pyodide version 0.27.7, as that is the one jupyterlite uses (or used 3 weeks ago last I checked, using the main live deploy of jupyterlite is desirable for me).

Looking at some older logs, it looks like maybe this could be a regression from 3.1.3 to 3.1.4, where I don't see the -v flag being used in the first step. But also pyodide 0.30.5 is being used.

I've attached two logs, one where the build proceeds (although there is another issue with compilation I am debugging in it) and the failed one, so hoping to spot more differences there.

working_build_cibuildwheel_log.txt

failed_build_cibuildwheel_log.txt

Build log

No response

CI config

https://github.com/AndrewAnnex/SpiceyPy/blob/add_pyodide_build/.github/workflows/publish-to-test-and-live-pypi.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions