53 lines
2.1 KiB
Diff
53 lines
2.1 KiB
Diff
|
From 502d06c8fa86b53198a2f4aeb59efdf1203531d6 Mon Sep 17 00:00:00 2001
|
|||
|
From: Petr Lautrbach <lautrbach@redhat.com>
|
|||
|
Date: Wed, 3 May 2023 10:17:06 +0200
|
|||
|
Subject: [PATCH] gitlab-ci: use apt-get to install python3-dbus package
|
|||
|
MIME-Version: 1.0
|
|||
|
Content-Type: text/plain; charset=UTF-8
|
|||
|
Content-Transfer-Encoding: 8bit
|
|||
|
Content-type: text/plain
|
|||
|
|
|||
|
Fixes:
|
|||
|
$ pip3 install dasbus
|
|||
|
error: externally-managed-environment
|
|||
|
× This environment is externally managed
|
|||
|
╰─> To install Python packages system-wide, try apt install
|
|||
|
python3-xyz, where xyz is the package you are trying to
|
|||
|
install.
|
|||
|
|
|||
|
If you wish to install a non-Debian-packaged Python package,
|
|||
|
create a virtual environment using python3 -m venv path/to/venv.
|
|||
|
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
|
|||
|
sure you have python3-full installed.
|
|||
|
|
|||
|
If you wish to install a non-Debian packaged Python application,
|
|||
|
it may be easiest to use pipx install xyz, which will manage a
|
|||
|
virtual environment for you. Make sure you have pipx installed.
|
|||
|
|
|||
|
See /usr/share/doc/python3.11/README.venv for more information.
|
|||
|
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
|
|||
|
hint: See PEP 668 for the detailed specification.
|
|||
|
|
|||
|
Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
|
|||
|
---
|
|||
|
.gitlab-ci.yml | 3 +--
|
|||
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|||
|
|
|||
|
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
|
|||
|
index e82e12f66737..bea5081bb0b9 100644
|
|||
|
--- a/.gitlab-ci.yml
|
|||
|
+++ b/.gitlab-ci.yml
|
|||
|
@@ -30,8 +30,7 @@ build:debian:
|
|||
|
- >
|
|||
|
apt-get -y install autoconf automake libglib2.0-dev libdbus-glib-1-dev libnotify-dev
|
|||
|
libgtk-3-dev gcc python3-selinux python3-gi python3-dbus python3-six python3-sepolicy
|
|||
|
- xdg-utils make intltool libaudit-dev libauparse-dev python3-pip
|
|||
|
- - pip3 install dasbus
|
|||
|
+ xdg-utils make intltool libaudit-dev libauparse-dev python3-pip python3-dasbus
|
|||
|
- ./autogen.sh
|
|||
|
- make
|
|||
|
- make install
|
|||
|
--
|
|||
|
2.41.0
|
|||
|
|