From bc0324f474a11834417e053800fecb2739e4ff42311e940564d47496196c72ce Mon Sep 17 00:00:00 2001 From: Vaughn Varma Date: Tue, 10 Mar 2026 16:37:01 -0400 Subject: [PATCH] fixed incorrect version of psutil and enabled system site utils --- recipes-core/files/fake_root.patch | 26 ++++++++++++++++++++++++++ recipes-python/python3-psutil_7.2.1.bb | 16 ++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 recipes-python/python3-psutil_7.2.1.bb diff --git a/recipes-core/files/fake_root.patch b/recipes-core/files/fake_root.patch index 7969ebd..a1b713c 100644 --- a/recipes-core/files/fake_root.patch +++ b/recipes-core/files/fake_root.patch @@ -129,3 +129,29 @@ index 4b5b633..f8bfba7 100755 echo "Dependencies installed..." echo "Virtual environment created at $VENV_DIR" +diff --git a/scripts/manage_plugin_venvs.sh b/scripts/manage_plugin_venvs.sh +index 2069e14..6c8ea9e 100755 +--- a/scripts/manage_plugin_venvs.sh ++++ b/scripts/manage_plugin_venvs.sh +@@ -97,7 +97,7 @@ create_plugin_venv() { + log_info "MSYS2 detected: using --system-site-packages for pre-built package access" + python3 -m venv --system-site-packages "$venv_path" + else +- python3 -m venv "$venv_path" ++ python3 -m venv --system-site-packages "$venv_path" + fi + + # Upgrade pip +diff --git a/start_openplc.sh b/start_openplc.sh +index af80f51..2ee5449 100755 +--- a/start_openplc.sh ++++ b/start_openplc.sh +@@ -86,7 +86,7 @@ setup_runtime_venv() { + log_info "Runtime virtual environment already exists." + else + log_info "Creating runtime virtual environment..." +- python3 -m venv "$VENV_DIR" ++ python3 -m venv --system-site-packages "$VENV_DIR" + if [ $? -ne 0 ]; then + log_error "Failed to create runtime virtual environment." + exit 1 diff --git a/recipes-python/python3-psutil_7.2.1.bb b/recipes-python/python3-psutil_7.2.1.bb new file mode 100644 index 0000000..ea75d55 --- /dev/null +++ b/recipes-python/python3-psutil_7.2.1.bb @@ -0,0 +1,16 @@ + +SUMMARY = "Cross-platform lib for process and system monitoring." +HOMEPAGE = "https://github.com/giampaolo/psutil" +AUTHOR = "Giampaolo Rodola " +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a9c72113a843d0d732a0ac1c200d81b1" + +SRC_URI = "https://files.pythonhosted.org/packages/73/cb/09e5184fb5fc0358d110fc3ca7f6b1d033800734d34cac10f4136cfac10e/psutil-7.2.1.tar.gz" +SRC_URI[md5sum] = "7d3ca5607f6810bec61293ff0845c06f" +SRC_URI[sha256sum] = "f7583aec590485b43ca601dd9cea0dcd65bd7bb21d30ef4ddbf4ea6b5ed1bdd3" + +S = "${UNPACKDIR}/psutil-7.2.1" + +RDEPENDS_${PN} = "" + +inherit setuptools3