From c747bd92e5e069ea259f3e21a4331af2448fa452 Mon Sep 17 00:00:00 2001
From: Marko Mecina <marko.mecina@univie.ac.at>
Date: Mon, 29 Aug 2022 13:03:05 +0200
Subject: [PATCH] update installation procedure to use system-site dbus and gi
 as default in venv, too

---
 README           | 14 +++++---------
 requirements.txt | 12 +++++++-----
 2 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/README b/README
index f18ddc4..7249c0a 100644
--- a/README
+++ b/README
@@ -6,10 +6,11 @@ This file documents the required steps to get the UVIE EGSE software up and runn
     
 2) Required packages/devtools
     - make
-    - python-pip
     - gtk3
-    - python-gobject
     - gtksourceview3 [<=3.24.11-1]
+    - python-pip
+    - python-gobject
+    - dbus-python
     - mariadb
     - mysql-workbench (optional)
 
@@ -24,7 +25,8 @@ This file documents the required steps to get the UVIE EGSE software up and runn
 
 4) Install Python packages. To install the required modules with pip in userspace or a venv, run
    'make install-python-requirements' in the CCS base directory or use 'pip install [--user] -r requirements.txt'.
-   For details, see requirements.txt
+   If using a venv, it must have been created using the --system-site-packages option.
+   For more details, see requirements.txt
 
 
 # INSTALLATION
@@ -43,9 +45,3 @@ Use CCS/Ccs/tools/import_mib.py to import a set of SCOS2000 MIB files into the M
 # CCS & TST
 ./start_ccs: starts the CCS
 ./start_tst: starts the TST
-
-# TROUBLESHOOTING
-If working within a Python venv, you might need to install vext to access the system-site installation of gi:
-pip install vext
-pip install vext.gi
-
diff --git a/requirements.txt b/requirements.txt
index 2f00080..89a1e86 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,4 @@
 # requirements for running CCS/TST
-# markupsafe < 2.1.0
 wheel
 ipython >= 7, < 8
 numpy
@@ -13,11 +12,13 @@ sphinx_rtd_theme
 astropy
 crcmod
 psutil
-dbus-python
-vext
-vext.gi
 
-# vext requires python-gobject to be installed on system level.
+
+# If using a venv that has not been initialised with the --system-site-packages option, you can try to install gi and dbus in the venv directly, or via vext
+# vext
+# vext.gi
+# vext.dbus
+# vext requires python-gobject dbus-python to be installed on system level.
 # Alternatively, install pygobject with pip (requires gobject-introspection to be installed)
 
 # If using Conda for managing Python packages, vext might not work. Try installing PyGObject in the venv with Conda instead:
@@ -25,3 +26,4 @@ vext.gi
 
 # For TASTE, which also needs libdbus-1-dev, gir1.2-notify-0.7, libgirepository1.0-dev, libgtk-3-dev:
 # pygobject
+# dbus-python
-- 
GitLab