]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: use environment variables to configure pip
authorVincent Bernat <vincent@bernat.ch>
Tue, 15 Oct 2024 20:44:07 +0000 (22:44 +0200)
committerVincent Bernat <vincent@bernat.ch>
Tue, 15 Oct 2024 20:44:07 +0000 (22:44 +0200)
Otherwise, it may or may not work depending on the version of pip...

tests/ci/install.sh

index 3c15b70fc42c57d747cafa825158f4204bfa810b..67e93a3ec8a5b1902c3a151e232c50068fb5c6d6 100755 (executable)
@@ -43,6 +43,7 @@ EOS
             snmpd snmp \
             python3-pip python3-setuptools python3-wheel
         # For integration tests
-        sudo -H $(which python3) -m pip install -r tests/integration/requirements.txt --break-system-packages
+        sudo -H env PIP_BREAK_SYSTEM_PACKAGES=1 \
+            $(which python3) -m pip install -r tests/integration/requirements.txt
         ;;
 esac