From ddfe4d1b41cd1f1c93a7e4aea31611381a251831 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Thu, 26 Sep 2024 20:40:29 +0200 Subject: [PATCH] Handle tuxedo os --- products/env_scripts/nlopt.py | 2 +- products/env_scripts/openmpi.py | 2 +- products/env_scripts/ptscotch.py | 2 +- products/env_scripts/qt.py | 2 +- products/env_scripts/scotch.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/products/env_scripts/nlopt.py b/products/env_scripts/nlopt.py index 4e98f17..ed90637 100644 --- a/products/env_scripts/nlopt.py +++ b/products/env_scripts/nlopt.py @@ -22,7 +22,7 @@ def set_nativ_env(env): prereq_dir='/usr/' prereq_bin='/usr/bin' prereq_inc='/usr/include' - elif any(distribution in distro.name().lower() for distribution in ["debian", "ubuntu"]) : + elif any(distribution in distro.name().lower() for distribution in ["debian", "ubuntu", "tuxedo os"]) : prereq_dir='/usr' prereq_inc='/usr/include' except: diff --git a/products/env_scripts/openmpi.py b/products/env_scripts/openmpi.py index 7a8de3c..e103adf 100644 --- a/products/env_scripts/openmpi.py +++ b/products/env_scripts/openmpi.py @@ -31,7 +31,7 @@ def set_nativ_env(env): prereq_dir='/usr/lib64/openmpi' prereq_bin='/usr/lib64/openmpi/bin' prereq_inc='/usr/include/openmpi-x86_64' - elif any(distribution in distro.name().lower() for distribution in ["debian", "ubuntu"]) : + elif any(distribution in distro.name().lower() for distribution in ["debian", "ubuntu", "tuxedo os"]) : prereq_dir='/usr/lib/x86_64-linux-gnu/openmpi' prereq_inc= '/usr/lib/x86_64-linux-gnu/openmpi/include' except: diff --git a/products/env_scripts/ptscotch.py b/products/env_scripts/ptscotch.py index c07aa4e..a7e35ac 100644 --- a/products/env_scripts/ptscotch.py +++ b/products/env_scripts/ptscotch.py @@ -29,7 +29,7 @@ def set_nativ_env(env): prereq_dir='/usr' prereq_inc= '/usr/include/openmpi-x86_64' prereq_lib='/usr/lib64/openmpi/lib' - elif any(distribution in distro.name().lower() for distribution in ["debian", "ubuntu"]) : + elif any(distribution in distro.name().lower() for distribution in ["debian", "ubuntu", "tuxedo os"]) : prereq_dir='/usr' prereq_inc='/usr/include/scotch-long' prereq_lib='/usr/lib/x86_64-linux-gnu/scotch-long' diff --git a/products/env_scripts/qt.py b/products/env_scripts/qt.py index f355476..e77ceec 100644 --- a/products/env_scripts/qt.py +++ b/products/env_scripts/qt.py @@ -27,7 +27,7 @@ def set_nativ_env(env): qt_lib_dir='/usr/lib64' try: import distro - if any(distribution in distro.name().lower() for distribution in ["debian", "ubuntu"]) : + if any(distribution in distro.name().lower() for distribution in ["debian", "ubuntu", "tuxedo os"]) : qt_lib_dir='/usr/lib/x86_64-linux-gnu' except: pass diff --git a/products/env_scripts/scotch.py b/products/env_scripts/scotch.py index eac32ed..8dfd02e 100755 --- a/products/env_scripts/scotch.py +++ b/products/env_scripts/scotch.py @@ -29,7 +29,7 @@ def set_nativ_env(env): prereq_dir='/usr' prereq_inc= '/usr/include/openmpi-x86_64' prereq_lib='/usr/lib64/openmpi/lib' - elif any(distribution in distro.name().lower() for distribution in ["debian", "ubuntu"]) : + elif any(distribution in distro.name().lower() for distribution in ["debian", "ubuntu", "tuxedo os"]) : prereq_dir='/usr' prereq_inc='/usr/include/scotch-long' prereq_lib='/usr/lib/x86_64-linux-gnu/scotch-long' -- 2.39.2