[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v3 09/20] tests/docker: add python3-venv dependency
From: |
Daniel P . Berrangé |
Subject: |
Re: [RFC PATCH v3 09/20] tests/docker: add python3-venv dependency |
Date: |
Tue, 25 Apr 2023 17:42:19 +0100 |
User-agent: |
Mutt/2.2.9 (2022-11-12) |
On Mon, Apr 24, 2023 at 04:02:37PM -0400, John Snow wrote:
> Several debian-based tests need the python3-venv dependency as a
> consequence of Debian debundling the "ensurepip" module normally
> included with Python.
>
> As mkvenv.py stands as of this commit, Debian requires EITHER:
>
> (A) setuptools and pip, or
> (B) ensurepip
>
> mkvenv is a few seconds faster if you have setuptools and pip, so
> developers should prefer the first requirement. For the purposes of CI,
> the time-save is a wash; it's only a matter of who is responsible for
> installing pip and when; the timing is about the same.
>
> Arbitrarily, I chose adding ensurepip to the test configuration because
> it is normally part of the Python stdlib, and always having it allows us
> a more consistent cross-platform environment.
python3-venv also matches the package that we already list in
the lcitool auto generated dockerfiles, so that consistency
is good.
>
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
> tests/docker/dockerfiles/debian-all-test-cross.docker | 3 ++-
> tests/docker/dockerfiles/debian-hexagon-cross.docker | 3 ++-
> tests/docker/dockerfiles/debian-riscv64-cross.docker | 3 ++-
> tests/docker/dockerfiles/debian-tricore-cross.docker | 3 ++-
> 4 files changed, 8 insertions(+), 4 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [RFC PATCH v3 05/20] mkvenv: generate console entry shims from inside the venv, (continued)
- [RFC PATCH v3 05/20] mkvenv: generate console entry shims from inside the venv, John Snow, 2023/04/24
- [RFC PATCH v3 03/20] mkvenv: add console script entry point generation, John Snow, 2023/04/24
- [RFC PATCH v3 06/20] mkvenv: work around broken pip installations on Debian 10, John Snow, 2023/04/24
- [RFC PATCH v3 04/20] mkvenv: Add better error message for missing pyexpat module, John Snow, 2023/04/24
- [RFC PATCH v3 02/20] python: add mkvenv.py, John Snow, 2023/04/24
- [RFC PATCH v3 08/20] mkvenv: add ensure subcommand, John Snow, 2023/04/24
- [RFC PATCH v3 07/20] mkvenv: add nested venv workaround, John Snow, 2023/04/24
- [RFC PATCH v3 10/20] tests/vm: Configure netbsd to use Python 3.10, John Snow, 2023/04/24
- [RFC PATCH v3 09/20] tests/docker: add python3-venv dependency, John Snow, 2023/04/24
- Re: [RFC PATCH v3 09/20] tests/docker: add python3-venv dependency,
Daniel P . Berrangé <=
- [RFC PATCH v3 11/20] tests/vm: add py310-expat to NetBSD, John Snow, 2023/04/24
- [RFC PATCH v3 13/20] configure: create a python venv unconditionally, John Snow, 2023/04/24
- [RFC PATCH v3 15/20] configure: add --enable-pypi and --disable-pypi, John Snow, 2023/04/24
- [RFC PATCH v3 12/20] scripts/make-release: download meson==0.61.5 .whl, John Snow, 2023/04/24
- [RFC PATCH v3 14/20] configure: use 'mkvenv ensure meson' to bootstrap meson, John Snow, 2023/04/24