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)
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', '/')
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