From: Guytri KASTANE Date: Thu, 28 Sep 2023 08:22:23 +0000 (+0200) Subject: restore env_script from master X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=401edfb5228f991d2d1a69a5902ac0b12230c1cd;p=tools%2Fsat_salome.git restore env_script from master --- diff --git a/products/env_scripts/fftw.py b/products/env_scripts/fftw.py index 51219ac..c9ed81a 100644 --- a/products/env_scripts/fftw.py +++ b/products/env_scripts/fftw.py @@ -13,25 +13,6 @@ def set_env(env, prereq_dir, version): env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib')) def set_nativ_env(env): - prereq_dir='/usr/lib' - prereq_bin='/usr/lib' - prereq_inc='/usr/include' - try: - import distro - if any(distribution in distro.name().lower() for distribution in ["rocky", "centos", "fedora"]) : - prereq_dir='/usr' - prereq_bin='/usr' - prereq_inc='/usr/include' - elif any(distribution in distro.name().lower() for distribution in ["debian", "ubuntu"]) : - prereq_dir='/usr/lib/x86_64-linux-gnu' - prereq_inc='/usr/include' - except: - import platform - if any(distribution in platform.linux_distribution()[0].lower() for distribution in ["rocky", "centos", "fedora"]) : - prereq_dir='/usr' - prereq_bin='/usr' - prereq_inc='/usr/include' - - env.set('FFTW_ROOT_DIR', prereq_dir) - env.set('FFTW_INCLUDE_DIR', prereq_inc) - env.prepend('LD_LIBRARY_PATH', prereq_dir) + env.set('FFTW_ROOT_DIR', '/usr') + env.set('FFTW_INCLUDE_DIR', '/usr') + #env.prepend('LD_LIBRARY_PATH', prereq_dir) diff --git a/products/env_scripts/lapack.py b/products/env_scripts/lapack.py index 228eafa..26ecc76 100644 --- a/products/env_scripts/lapack.py +++ b/products/env_scripts/lapack.py @@ -21,27 +21,6 @@ def set_env(env, prereq_dir, version): env.prepend('PATH', os.path.join(prereq_dir, 'bin')) def set_nativ_env(env): - prereq_dir='/usr/lib' - prereq_bin='/usr/lib' - prereq_inc='/usr/include' - try: - import distro - if any(distribution in distro.name().lower() for distribution in ["rocky", "centos", "fedora"]) : - prereq_dir='/usr' - prereq_bin='/usr' - prereq_inc='/usr/include' - elif any(distribution in distro.name().lower() for distribution in ["debian", "ubuntu"]) : - prereq_dir='/usr/lib/x86_64-linux-gnu' - prereq_inc='/usr/include' - except: - import platform - if any(distribution in platform.linux_distribution()[0].lower() for distribution in ["rocky", "centos", "fedora"]) : - prereq_dir='/usr' - prereq_bin='/usr' - prereq_inc='/usr/include' - - env.set('LAPACKHOME', prereq_dir) - env.set('LAPACK_ROOT_DIR', prereq_dir) - env.prepend('LD_LIBRARY_PATH', prereq_dir) - + env.set('LAPACKHOME', '/usr') + env.set('LAPACK_ROOT_DIR', '/') diff --git a/products/env_scripts/metis.py b/products/env_scripts/metis.py index 9371c86..09f763b 100755 --- a/products/env_scripts/metis.py +++ b/products/env_scripts/metis.py @@ -17,29 +17,5 @@ def set_env(env, prereq_dir, version): env.prepend('PATH', os.path.join(prereq_dir, 'bin')) def set_nativ_env(env): - #env.set('METISDIR', '/usr') - #env.set('METIS_ROOT_DIR', '/usr') # update for cmake - prereq_dir='/usr' - prereq_bin='/usr/bin' - prereq_inc='/usr/include' - try: - import distro - if any(distribution in distro.name().lower() for distribution in ["rocky", "centos", "fedora"]) : - prereq_dir='/usr' - prereq_bin='/usr/bin' - prereq_inc='/usr/include' - elif any(distribution in distro.name().lower() for distribution in ["debian", "ubuntu"]) : - prereq_dir='/usr/lib/x86_64-linux-gnu' - prereq_inc='/usr/include' - except: - import platform - if any(distribution in platform.linux_distribution()[0].lower() for distribution in ["rocky", "centos", "fedora"]) : - prereq_dir='/usr' - prereq_bin='/usr' - prereq_inc='/usr/include' - - env.set('METISDIR', prereq_dir) - env.set('METIS_ROOT_DIR', prereq_dir) - env.set('METIS_INCLUDE_DIR', prereq_inc) - env.prepend('LD_LIBRARY_PATH', prereq_dir) - + env.set('METISDIR', '/usr') + env.set('METIS_ROOT_DIR', '/usr') # update for cmake