Skip to content

chore(action): do not use pipx#1745

Merged
joerick merged 1 commit intopypa:mainfrom
mayeut:nopipx
Mar 9, 2024
Merged

chore(action): do not use pipx#1745
joerick merged 1 commit intopypa:mainfrom
mayeut:nopipx

Conversation

@mayeut
Copy link
Copy Markdown
Member

@mayeut mayeut commented Jan 31, 2024

If #1743 is just meant to be temporary while waiting on actions/runner-images#9256, then that's ok.

However, if we need this in the long run, I'd rather not change the worker default environment. It's not necessarily an issue for github-hosted workers which are ephemeral but it could became an issue for self-hosted.

@henryiii
Copy link
Copy Markdown
Contributor

Let's see if they re-add pipx, which I'd really hope they do. I should have limited the workaround to a subset of runners (macos-14 only? macos-13-xlarge? Ideally only AS arch only?)

@henryiii
Copy link
Copy Markdown
Contributor

(It can also break later steps if people are doing things with setup-python and need a clean environments that doesn't have pipx's dependencies installed. cibuildwheel tends to be mostly standalone, which is nice, but not true for nox (where I haven't proposed a fix for this yet))

@henryiii
Copy link
Copy Markdown
Contributor

Should we take these out of draft? I don't think pipx / built-in Python is coming back soon, and am fine with the workaround. (Also wntrblm/nox#768)

@mayeut mayeut marked this pull request as ready for review March 4, 2024 10:06
Copy link
Copy Markdown
Contributor

@joerick joerick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@joerick joerick merged commit 80095ac into pypa:main Mar 9, 2024
@mayeut mayeut deleted the nopipx branch March 15, 2024 22:15
@nightlark
Copy link
Copy Markdown

I noticed a CI job is failing again on macOS due to the missing pipx when updating to the latest cibuildwheel release: nightlark/swig-pypi#123

Is there a recommended alternative (aside from migrating to scikit-build-core now)? Currently using pyproject.toml tool.cibuildwheel.before-all with pipx to ensure suitable cmake and ninja versions are installed.

@henryiii
Copy link
Copy Markdown
Contributor

Migrating sounds good. :) But GHA is shipping pipx in the next image deployment. And you can pre-install pipx yourself in the mean time.

@nightlark
Copy link
Copy Markdown

Alright, good to hear -- looks like for now it will be pre-installing pipx, and hopefully soon get the migration to scikit-build-core merged. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants