[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stable-7.2.10 48/54] gitlab: force allow use of pip in Cirrus jobs
From: |
Michael Tokarev |
Subject: |
[Stable-7.2.10 48/54] gitlab: force allow use of pip in Cirrus jobs |
Date: |
Sun, 3 Mar 2024 10:39:27 +0300 |
From: Daniel P. Berrangé <berrange@redhat.com>
Python is transitioning to a world where you're not allowed to use 'pip
install' outside of a virutal env by default. The rationale is to stop
use of pip clashing with distro provided python packages, which creates
a major headache on distro upgrades.
All our CI environments, however, are 100% disposable so the upgrade
headaches don't exist. Thus we can undo the python defaults to allow
pip to work.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Thomas Huth <thuth@redhat.com>
Message-id: 20240222114038.2348718-1-berrange@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit a8bf9de2f4f398315ac5340e4b88c478d5457731)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
diff --git a/.gitlab-ci.d/cirrus/build.yml b/.gitlab-ci.d/cirrus/build.yml
index 7ef6af8d33..d8cf08dc14 100644
--- a/.gitlab-ci.d/cirrus/build.yml
+++ b/.gitlab-ci.d/cirrus/build.yml
@@ -19,7 +19,7 @@ build_task:
install_script:
- @UPDATE_COMMAND@
- @INSTALL_COMMAND@ @PKGS@
- - if test -n "@PYPI_PKGS@" ; then @PIP3@ install @PYPI_PKGS@ ; fi
+ - if test -n "@PYPI_PKGS@" ; then PYLIB=$(@PYTHON@ -c 'import sysconfig;
print(sysconfig.get_path("stdlib"))'); rm -f $PYLIB/EXTERNALLY-MANAGED; @PIP3@
install @PYPI_PKGS@ ; fi
clone_script:
- git clone --depth 100 "$CI_REPOSITORY_URL" .
- git fetch origin "$CI_COMMIT_REF_NAME"
--
2.39.2
- [Stable-7.2.10 v3 00/54] Patch Round-up for stable 7.2.10, freeze on 2024-03-02 (frozen), Michael Tokarev, 2024/03/03
- [Stable-7.2.10 48/54] gitlab: force allow use of pip in Cirrus jobs,
Michael Tokarev <=
- [Stable-7.2.10 50/54] tests/unit/test-util-sockets: Remove temporary file after test, Michael Tokarev, 2024/03/03
- [Stable-7.2.10 49/54] hw/usb/bus.c: PCAP adding 0xA in Windows version, Michael Tokarev, 2024/03/03
- [Stable-7.2.10 51/54] test-vmstate: fix bad GTree usage, use-after-free, Michael Tokarev, 2024/03/03
- [Stable-7.2.10 53/54] tests/unit/test-blockjob: Disable complete_in_standby test, Michael Tokarev, 2024/03/03
- [Stable-7.2.10 52/54] tests/qtest/display-vga-test: Add proper checks if a device is available, Michael Tokarev, 2024/03/03
- [Stable-7.2.10 54/54] target/i386: the sgx_epc_get_section stub is reachable, Michael Tokarev, 2024/03/03