From 76b270c219945f61735621f8c653e511045e5715 Mon Sep 17 00:00:00 2001 From: Avinesh Kumar Date: Tue, 1 Dec 2026 20:49:28 +0100 Subject: [PATCH] Add openSUSE instructions to DELF installation The DELF installation doc and its one-shot installer only covered Debian/Ubuntu. Add the zypper equivalent for python3-tk so the same dependency can be installed on SLES and openSUSE. The installer checks for zypper first because zypper-aptitude also provides apt-get on SUSE. --- research/delf/INSTALL_INSTRUCTIONS.md | 3 +++ research/delf/delf/python/training/install_delf.sh | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/research/delf/INSTALL_INSTRUCTIONS.md b/research/delf/INSTALL_INSTRUCTIONS.md index f5616f47ff0..3875caf1cee 100644 --- a/research/delf/INSTALL_INSTRUCTIONS.md +++ b/research/delf/INSTALL_INSTRUCTIONS.md @@ -88,7 +88,10 @@ Install python library dependencies: ```bash pip3 install matplotlib numpy scikit-image scipy +# Debian/Ubuntu: sudo apt-get install python3-tk +# SLES/openSUSE: +sudo zypper install python3-tk ``` ### `tensorflow/models` diff --git a/research/delf/delf/python/training/install_delf.sh b/research/delf/delf/python/training/install_delf.sh index 5e54bf8005c..a54a0221a0a 100755 --- a/research/delf/delf/python/training/install_delf.sh +++ b/research/delf/delf/python/training/install_delf.sh @@ -99,7 +99,11 @@ install_python_libraries() { pip3 install matplotlib numpy scikit-image scipy local exit_code=$? handle_exit_code ${exit_code} "Unable to install at least one of: matplotlib numpy scikit-image scipy." - sudo apt-get -y install python3-tk + if command -v zypper > /dev/null 2>&1; then + sudo zypper -n install python3-tk + elif command -v apt-get > /dev/null 2>&1; then + sudo apt-get -y install python3-tk + fi local exit_code=$? handle_exit_code ${exit_code} "Unable to install python3-tk." }