Skip to content

Conversation

@henryiii
Copy link
Contributor

@henryiii henryiii commented Mar 21, 2025

This will fix #2327. uvx git+https://github.com/henryiii/cibuildwheel@henryiii/fix/uvx --only cp312-pyodide_wasm32 does seem to pass with this.

Virtualenv can break if the --python argument is a symlink.

@joerick
Copy link
Contributor

joerick commented Mar 21, 2025

I also hit the bug when using a uv installed version of python, which was somehow on my PATH, (maybe from uv python install, but I don't remember doing that). In my case, UV wouldn't have been set.

@henryiii
Copy link
Contributor Author

Looking into if we can fix the virtualenv creation.

@henryiii
Copy link
Contributor Author

This fixed it for me, thanks to @zanieb!

I can backport, as well (it's in a different path in 2.x).

@henryiii henryiii marked this pull request as ready for review March 21, 2025 20:21
@henryiii henryiii changed the title fix: use uv venv if uvx is running cibuildwheel fix: always resolve --python argument Mar 21, 2025
@henryiii
Copy link
Contributor Author

PS: Also tagging @vineetbansal, who I originally found the issue with.

@mayeut mayeut added the needs-backport Can/should be ported to LTS branch label Mar 22, 2025
@mayeut mayeut merged commit 462c995 into pypa:main Mar 22, 2025
24 checks passed
henryiii added a commit to henryiii/cibuildwheel that referenced this pull request Mar 22, 2025
fix: always resolve the --python argument

Signed-off-by: Henry Schreiner <[email protected]>
henryiii added a commit that referenced this pull request Mar 23, 2025
fix: always resolve --python argument (#2328)

fix: always resolve the --python argument

Signed-off-by: Henry Schreiner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-backport Can/should be ported to LTS branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Pyodide from uv python

3 participants