-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails on pre-commit.ci - missing ensurepip #148
Comments
Fixes mgedmin#148 (I hope) by allowing build to use virtualenv instead of venv.
TBH I would make sure my CI build environment is not broken by doing a (I also don't think a pip-installed virtualenv would work on a Debian-packaged Python 3 without python3-venv being installed. IIRC virtualenv depends on stdlib's venv on Python 3, or at least it used to at one point.) |
I don't think pre-commit.ci has any way to install extra apt packages - I'd be happy to hear that I'm wrong, but I think the idea is that it has minimal config and runs very fast because it just needs to run the pre-commit hooks, so it can use a standard image and heavy caching. |
I've tried filing an issue on pre-commit.ci itself - we'll see what comes of that: pre-commit-ci/runner-image#114 |
Anthony - the maintainer of pre-commit - pointed out that network access is disabled when hooks run, so installing stuff in a virtualenv wouldn't work anyway, and the only option for this hook on pre-commit.ci is to use the |
Thanks for this tool, which we're using for h5py. 🙂
We're running this inside
pre-commit
on https://pre-commit.ci/ (a dedicated CI platform for pre-commit). At the moment, we have version 0.39, which works. However, pre-commit is keen to upgrade to the latest (0.47), which fails with this message:It looks like if you depend on
build[virtualenv]
, build will prefer virtualenv to venv, which I think should fix this (https://github.com/pypa/build/blob/96f9188ad181907fbd3e0efdf32dd3dc959d39c3/src/build/env.py#L61-L71 ).It's frustrating that Debian is willing to break things that we can otherwise assume are always available. 😞
The text was updated successfully, but these errors were encountered: