Henry Schreiner

Results 2521 comments of Henry Schreiner

The standard way to detect a venv is to check for `pyvenv.cfg` at the base of the environment. If it exists, it's a venv (and the contents tell you various...

Here's a recent example: https://github.com/astral-sh/uv/pull/1504/files. (Edit, that looks problematic, I like the way you did it better)

Do you need to compute `bin/pip`? Couldn't you use `{sys.executable} -m pip`?

Yes, that was due to a GitHub rollout of new builder images that contained Powershell 7.3+, which changed the way quoting works. It's way better, but the weird quoting required...

I've updated the title of #1740 and pinned it, maybe that will help.

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...

(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,...

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 https://github.com/wntrblm/nox/pull/768)

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