From 64d344ae3c80c9fbc7d9d62b9957bba2e2a651fe Mon Sep 17 00:00:00 2001 From: DUC ANH HOANG Date: Tue, 18 Apr 2023 14:42:53 +0200 Subject: [PATCH] remove the packaging script from kernel --- bin/SalomeOnDemandTK/3dparty.salomexb | 85 ----------------- bin/SalomeOnDemandTK/3dparty.salomexd | 8 -- bin/SalomeOnDemandTK/3dparty_env.py | 92 ------------------- bin/SalomeOnDemandTK/Atomic.salomexb | 3 - bin/SalomeOnDemandTK/Atomic.salomexd | 7 -- bin/SalomeOnDemandTK/Atomic_env.py | 31 ------- bin/SalomeOnDemandTK/Base.salomexb | 6 -- bin/SalomeOnDemandTK/Base.salomexd | 7 -- bin/SalomeOnDemandTK/Base_env.py | 58 ------------ bin/SalomeOnDemandTK/GEOM.salomexb | 3 - bin/SalomeOnDemandTK/GEOM.salomexd | 7 -- bin/SalomeOnDemandTK/GEOM_env.py | 43 --------- bin/SalomeOnDemandTK/PYHELLO.salomexb | 3 - bin/SalomeOnDemandTK/PYHELLO.salomexd | 7 -- bin/SalomeOnDemandTK/PYHELLO_env.py | 38 -------- .../SMESH_and_plugins.salomexb | 9 -- .../SMESH_and_plugins.salomexd | 7 -- bin/SalomeOnDemandTK/SMESH_and_plugins_env.py | 63 ------------- 18 files changed, 477 deletions(-) delete mode 100644 bin/SalomeOnDemandTK/3dparty.salomexb delete mode 100644 bin/SalomeOnDemandTK/3dparty.salomexd delete mode 100644 bin/SalomeOnDemandTK/3dparty_env.py delete mode 100644 bin/SalomeOnDemandTK/Atomic.salomexb delete mode 100644 bin/SalomeOnDemandTK/Atomic.salomexd delete mode 100644 bin/SalomeOnDemandTK/Atomic_env.py delete mode 100644 bin/SalomeOnDemandTK/Base.salomexb delete mode 100644 bin/SalomeOnDemandTK/Base.salomexd delete mode 100644 bin/SalomeOnDemandTK/Base_env.py delete mode 100644 bin/SalomeOnDemandTK/GEOM.salomexb delete mode 100644 bin/SalomeOnDemandTK/GEOM.salomexd delete mode 100644 bin/SalomeOnDemandTK/GEOM_env.py delete mode 100644 bin/SalomeOnDemandTK/PYHELLO.salomexb delete mode 100644 bin/SalomeOnDemandTK/PYHELLO.salomexd delete mode 100644 bin/SalomeOnDemandTK/PYHELLO_env.py delete mode 100644 bin/SalomeOnDemandTK/SMESH_and_plugins.salomexb delete mode 100644 bin/SalomeOnDemandTK/SMESH_and_plugins.salomexd delete mode 100644 bin/SalomeOnDemandTK/SMESH_and_plugins_env.py diff --git a/bin/SalomeOnDemandTK/3dparty.salomexb b/bin/SalomeOnDemandTK/3dparty.salomexb deleted file mode 100644 index 7525e5de7..000000000 --- a/bin/SalomeOnDemandTK/3dparty.salomexb +++ /dev/null @@ -1,85 +0,0 @@ -Python/bin -Python/lib -Python/share -gcc/bin -gcc/lib -gcc/lib64 -gcc/libexec -gcc/share -lapack/lib -openmpi/bin -openmpi/lib -hdf5/bin -hdf5/lib -cgns/bin -cgns/lib -tbb/lib -nlopt/lib -libxml2/bin -libxml2/lib -netcdf/bin -netcdf/lib -gdal/bin -gdal/lib -gdal/share -boost/lib -omniORB/bin -omniORB/lib -cppunit/bin -cppunit/lib -LIBBATCH/lib -freetype/bin -freetype/lib -qt/plugins -qt/bin -qt/lib -sip/bin -sip/lib -PyQt/bin -PyQt/lib -PyQt/sip -freeimage/bin -freeimage/lib -CAS/bin -CAS/lib -CAS/share -qwt/lib -matplotlib/lib -embree/lib -rkCommon/lib -openVKL/lib -ospray/lib -cminpack/bin -cminpack/lib -cminpack/share -FMILibrary/bin -FMILibrary/lib -PyFMI/lib -openturns/bin -openturns/lib -catalyst/lib -ParaView/bin -ParaView/lib -graphviz/bin -graphviz/lib -pmml/bin -pmml/lib -opencv/bin -opencv/lib -tcl/bin -tcl/lib -planegcs/lib -medfile/bin -medfile/lib -metis/bin -metis/lib -metis/bin -petsc/lib -TTK/bin -TTK/lib -C3PO/bin -C3PO/lib -root/bin -root/lib -zeromq/bin -zeromq/lib \ No newline at end of file diff --git a/bin/SalomeOnDemandTK/3dparty.salomexd b/bin/SalomeOnDemandTK/3dparty.salomexd deleted file mode 100644 index d5ede7b49..000000000 --- a/bin/SalomeOnDemandTK/3dparty.salomexd +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "3dparty", - "descr": "SALOME extension", - "depends_on": [], - "author": "SALOME Team", - "components": [ "Python", "gcc", "lapack", "openmpi", "hdf5", "cgns", "tbb", "nlopt", "libxml2", "netcdf", "gdal", "boost", "omniORB", "cppunit", "LIBBATCH", "freetype", "qt", "sip", "PyQt", "freeimage", "CAS", "qwt", "matplotlib", "embree", "rkCommon", "openVKL", "ospray", "cminpack", "FMILibrary", "PyFMI", "openturns", "catalyst", "ParaView", "graphviz", "pmml", "opencv", "tcl", "planegcs", "medfile", "metis", "petsc", "TTK", "C3PO", "root", "zeromq" ] -} - diff --git a/bin/SalomeOnDemandTK/3dparty_env.py b/bin/SalomeOnDemandTK/3dparty_env.py deleted file mode 100644 index 161fc9bcc..000000000 --- a/bin/SalomeOnDemandTK/3dparty_env.py +++ /dev/null @@ -1,92 +0,0 @@ - -#!/usr/bin/env python3 -# -*- coding:utf-8 -*- - -""" -SALOME application environment. -""" - -import os -import sys -from SalomeOnDemandTK.extension_query import ext_info_dict - - -def init(context, ext_root_dir): - """ - Set an environment for SALOME app. - - Args: - context - an SalomeContext object. - ext_root_dir - a path to __SALOME_EXT__ directory. - - Returns: - None. - """ - - BINDIR = os.path.join(ext_root_dir, 'bin') - LIBDIR = os.path.join(ext_root_dir, 'lib') - python_version = '{}.{}'.format(sys.version_info[0], sys.version_info[1]) - python_libdir = os.path.join('lib', 'python' + python_version, 'site-packages') - - reinitialise_paths = True - - #[SALOME_COMMON] - - out_dir_Path=os.path.dirname(os.path.realpath(__file__)) - - # Seting SALOME modules environment - modules = ext_info_dict(out_dir_Path) - for module in modules: - print - for component in modules[module][2].split(', '): - context.setVariable('%s_ROOT_DIR'%component, ext_root_dir, overwrite=True) - # Seting SALOME prerequis and tools environment - context.addToPath(BINDIR) - context.addToLdLibraryPath(LIBDIR) - context.addToPythonPath(BINDIR) - context.addToPythonPath(LIBDIR) - context.addToPythonPath(os.path.join(ext_root_dir, python_libdir)) - context.addToPythonPath(os.path.join(ext_root_dir, 'lib', 'python' + python_version)) - - #[Python] - context.setVariable(r"PYTHON_VERSION", python_version, overwrite=True) - context.addToPath(ext_root_dir) - context.setVariable(r"PYTHONBIN", os.path.join(BINDIR,'python3'), overwrite=True) - - #[gcc] - context.addToLdLibraryPath(os.path.join(ext_root_dir, 'lib64')) - - #[openmpi] - context.setVariable(r"MPIEXEC_EXECUTABLE", os.path.join(BINDIR, 'mpiexec'), overwrite=True) - context.addToPath(os.path.join(ext_root_dir,'include')) - - #[qt] - context.setVariable(r"QTDIR", ext_root_dir, overwrite=True) - context.setVariable(r"QT5_ROOT_DIR", ext_root_dir, overwrite=True) - context.setVariable(r"QT_PLUGIN_PATH", os.path.join(ext_root_dir,'plugins'), overwrite=True) - context.setVariable(r"QT_QPA_PLATFORM_PLUGIN_PATH", os.path.join(ext_root_dir,'plugins'), overwrite=True) - - #[PyQt] - context.addToPythonPath(os.path.join(ext_root_dir, 'sip',python_libdir)) - - #[CAS] - context.setVariable(r"CSF_ShadersDirectory", os.path.join( ext_root_dir, 'share/opencascade/resources/Shaders'), overwrite=True) - context.setVariable(r"CSF_UnitsLexicon", os.path.join( ext_root_dir, 'share/opencascade/resources/UnitsAPI/Lexi_Expr.dat'), overwrite=True) - context.setVariable(r"CSF_UnitsDefinition", os.path.join( ext_root_dir, 'share/opencascade/resources/UnitsAPI/Units.dat'), overwrite=True) - context.setVariable(r"CSF_SHMessage", os.path.join( ext_root_dir, 'share/opencascade/resources/SHMessage'), overwrite=True) - context.setVariable(r"CSF_XSMessage", os.path.join( ext_root_dir, 'share/opencascade/resources/XSMessage'), overwrite=True) - context.setVariable(r"CSF_MDTVTexturesDirectory", os.path.join( ext_root_dir, 'share/opencascade/resources/Textures'), overwrite=True) - context.setVariable(r"MMGT_REENTRANT", r"1", overwrite=True) - context.setVariable(r"CSF_StandardDefaults", os.path.join( ext_root_dir, 'share/opencascade/resources/StdResource'), overwrite=True) - context.setVariable(r"CSF_PluginDefaults", os.path.join( ext_root_dir, 'share/opencascade/resources/StdResource'), overwrite=True) - context.addToPath(ext_root_dir) - - #[ParaView] - context.setVariable(r"PV_PLUGIN_PATH", os.path.join(LIBDIR,'paraview-5.11'), overwrite=True) - context.addToVariable(r"PV_PLUGIN_PATH", os.path.join(LIBDIR,'paraview-5.11','plugins'),separator=":") - context.addToPythonPath(os.path.join(LIBDIR,'paraview-5.11', 'site-packages')) - context.addToPythonPath(os.path.join(LIBDIR,'paraview-5.11', 'site-packages', 'vtk')) - context.addToPath(os.path.join(ext_root_dir,'include', 'paraview-5.11')) - context.addToLdLibraryPath(os.path.join(LIBDIR,'paraview-5.11')) - context.addToPythonPath(os.path.join(LIBDIR,'paraview-5.11')) - context.addToPythonPath(python_libdir) \ No newline at end of file diff --git a/bin/SalomeOnDemandTK/Atomic.salomexb b/bin/SalomeOnDemandTK/Atomic.salomexb deleted file mode 100644 index 6a6adf9bd..000000000 --- a/bin/SalomeOnDemandTK/Atomic.salomexb +++ /dev/null @@ -1,3 +0,0 @@ -ATOMIC/bin -ATOMIC/lib -ATOMIC/share diff --git a/bin/SalomeOnDemandTK/Atomic.salomexd b/bin/SalomeOnDemandTK/Atomic.salomexd deleted file mode 100644 index b78814304..000000000 --- a/bin/SalomeOnDemandTK/Atomic.salomexd +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "Atomic", - "descr": "SALOME extension", - "depends_on": ["Base"], - "author": "SALOME Team", - "components": ["ATOMIC"] -} diff --git a/bin/SalomeOnDemandTK/Atomic_env.py b/bin/SalomeOnDemandTK/Atomic_env.py deleted file mode 100644 index 9a9d2daf7..000000000 --- a/bin/SalomeOnDemandTK/Atomic_env.py +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding:utf-8 -*- - -""" -Add a custom environment to the SALOME extension. -""" - -import os - - -def init(context, root_dir): - """ - Set an environment for an extension on start of SALOME app. - - Args: - context - an SalomeContext object. - root_dir - a path to __SALOME_EXT__ directory. - - Returns: - None. - """ - - #[ATOMIC] - atomic_root_dir = os.path.join(root_dir, 'ATOMIC') - context.setVariable('ATOMIC_ROOT_DIR', atomic_root_dir, overwrite=True) - context.addToPath(os.path.join(atomic_root_dir, 'bin', 'salome')) - context.addToLdLibraryPath(os.path.join(atomic_root_dir, 'lib', 'salome')) - context.addToVariable('SALOME_MODULES', 'ATOMIC', separator=',') - - atomic_res_dir = os.path.join(atomic_root_dir, 'share', 'salome', 'resources', 'atomic') - context.addToVariable('SalomeAppConfig', atomic_res_dir, separator=os.pathsep) diff --git a/bin/SalomeOnDemandTK/Base.salomexb b/bin/SalomeOnDemandTK/Base.salomexb deleted file mode 100644 index 0eed8bb9a..000000000 --- a/bin/SalomeOnDemandTK/Base.salomexb +++ /dev/null @@ -1,6 +0,0 @@ -KERNEL/bin -KERNEL/lib -KERNEL/share -GUI/bin -GUI/lib -GUI/share diff --git a/bin/SalomeOnDemandTK/Base.salomexd b/bin/SalomeOnDemandTK/Base.salomexd deleted file mode 100644 index f16f6c3bd..000000000 --- a/bin/SalomeOnDemandTK/Base.salomexd +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "Base", - "descr": "SALOME extension", - "depends_on": [], - "author": "SALOME Team", - "components": ["KERNEL", "GUI"] -} diff --git a/bin/SalomeOnDemandTK/Base_env.py b/bin/SalomeOnDemandTK/Base_env.py deleted file mode 100644 index dda72b73b..000000000 --- a/bin/SalomeOnDemandTK/Base_env.py +++ /dev/null @@ -1,58 +0,0 @@ - -#!/usr/bin/env python3 -# -*- coding:utf-8 -*- - -""" -SALOME application environment. -""" - -import os -import sys -from SalomeOnDemandTK.extension_query import ext_info_dict - - -def init(context, ext_root_dir): - """ - Set an environment for SALOME app. - - Args: - context - an SalomeContext object. - ext_root_dir - a path to __SALOME_EXT__ directory. - - Returns: - None. - """ - - python_version = '{}.{}'.format(sys.version_info[0], sys.version_info[1]) - python_libdir = os.path.join('lib', 'python' + python_version, 'site-packages') - - reinitialise_paths = True - - #[SALOME_COMMON] - - out_dir_Path=os.path.dirname(os.path.realpath(__file__)) - - # Seting SALOME modules environment - modules = ext_info_dict(out_dir_Path) - for module in modules: - print - for component in modules[module][2].split(', '): - context.setVariable('%s_ROOT_DIR'%component, ext_root_dir, overwrite=True) - context.addToPath(os.path.join(ext_root_dir, 'bin', 'salome')) - context.addToLdLibraryPath(os.path.join(ext_root_dir, 'lib', 'salome')) - context.addToPythonPath(os.path.join(ext_root_dir, 'bin', 'salome')) - context.addToPythonPath(os.path.join(ext_root_dir, 'lib', 'salome')) - context.addToPythonPath(os.path.join(ext_root_dir, python_libdir, 'salome')) - - # Seting SALOME prerequis and tools environment - context.addToPath(os.path.join(ext_root_dir, 'bin')) - context.addToLdLibraryPath(os.path.join(ext_root_dir, 'lib')) - context.addToPythonPath(os.path.join(ext_root_dir, 'bin')) - context.addToPythonPath(os.path.join(ext_root_dir, 'lib')) - context.addToPythonPath(os.path.join(ext_root_dir, python_libdir)) - - res_dir = os.path.join(ext_root_dir, 'share', 'salome', 'resources', 'gui') - if reinitialise_paths: - context.setVariable('SalomeAppConfig', res_dir, overwrite=True) - else: - context.addToVariable('SalomeAppConfig', res_dir, separator=os.pathsep) diff --git a/bin/SalomeOnDemandTK/GEOM.salomexb b/bin/SalomeOnDemandTK/GEOM.salomexb deleted file mode 100644 index 57069dff3..000000000 --- a/bin/SalomeOnDemandTK/GEOM.salomexb +++ /dev/null @@ -1,3 +0,0 @@ -GEOM/bin -GEOM/lib -GEOM/share diff --git a/bin/SalomeOnDemandTK/GEOM.salomexd b/bin/SalomeOnDemandTK/GEOM.salomexd deleted file mode 100644 index bb92ace0a..000000000 --- a/bin/SalomeOnDemandTK/GEOM.salomexd +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "GEOM", - "descr": "SALOME extension", - "depends_on": ["Base"], - "author": "SALOME Team", - "components": ["GEOM"] -} diff --git a/bin/SalomeOnDemandTK/GEOM_env.py b/bin/SalomeOnDemandTK/GEOM_env.py deleted file mode 100644 index c83445387..000000000 --- a/bin/SalomeOnDemandTK/GEOM_env.py +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding:utf-8 -*- - -""" -Add a custom environment to the SALOME extension. -""" - -import os -import sys - - -def init(context, root_dir): - """ - Set an environment for an extension on start of SALOME app. - - Args: - context - an SalomeContext object. - root_dir - a path to __SALOME_EXT__ directory. - - Returns: - None. - """ - - python_version = '{}.{}'.format(sys.version_info[0], sys.version_info[1]) - python_libdir = os.path.join('lib', 'python' + python_version, 'site-packages') - - #[GEOM] - geom_root_dir = os.path.join(root_dir, 'GEOM') - context.setVariable('GEOM_ROOT_DIR', geom_root_dir, overwrite=True) - context.addToPath(os.path.join(geom_root_dir, 'bin', 'salome')) - context.addToLdLibraryPath(os.path.join(geom_root_dir, 'lib', 'salome')) - context.addToPythonPath(os.path.join(geom_root_dir, 'bin', 'salome')) - context.addToPythonPath(os.path.join(geom_root_dir, 'lib', 'salome')) - context.addToPythonPath(os.path.join(geom_root_dir, python_libdir, 'salome')) - - context.setVariable('PARALLEL_VISU', '1', overwrite=True) - - geom_res_dir = os.path.join(geom_root_dir, 'share', 'salome', 'resources', 'geom') - context.addToVariable('SalomeAppConfig', geom_res_dir, separator=os.pathsep) - context.setVariable('GEOM_PluginsList', - 'BREPPlugin:STEPPlugin:IGESPlugin:STLPlugin:XAOPlugin:VTKPlugin:AdvancedGEOM', - overwrite=True) - context.setVariable('CSF_ShHealingDefaults', geom_res_dir, overwrite=True) diff --git a/bin/SalomeOnDemandTK/PYHELLO.salomexb b/bin/SalomeOnDemandTK/PYHELLO.salomexb deleted file mode 100644 index 07ff2f71a..000000000 --- a/bin/SalomeOnDemandTK/PYHELLO.salomexb +++ /dev/null @@ -1,3 +0,0 @@ -PYHELLO/bin/salome -PYHELLO/lib -PYHELLO/share diff --git a/bin/SalomeOnDemandTK/PYHELLO.salomexd b/bin/SalomeOnDemandTK/PYHELLO.salomexd deleted file mode 100644 index f1c1f057f..000000000 --- a/bin/SalomeOnDemandTK/PYHELLO.salomexd +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "PYHELLO", - "descr": "SALOME extension", - "depends_on": ["Base"], - "author": "SALOME Team", - "components": ["PYHELLO"] -} diff --git a/bin/SalomeOnDemandTK/PYHELLO_env.py b/bin/SalomeOnDemandTK/PYHELLO_env.py deleted file mode 100644 index eea9b36db..000000000 --- a/bin/SalomeOnDemandTK/PYHELLO_env.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding:utf-8 -*- - -""" -Add a custom environment to the SALOME extension. -""" - -import os -import sys - - -def init(context, root_dir): - """ - Set an environment for an extension on start of SALOME app. - - Args: - context - an SalomeContext object. - root_dir - a path to __SALOME_EXT__ directory. - - Returns: - None. - """ - - python_version = '{}.{}'.format(sys.version_info[0], sys.version_info[1]) - python_libdir = os.path.join('lib', 'python' + python_version, 'site-packages') - - #[PYHELLO] - pyhello_root_dir = os.path.join(root_dir, 'PYHELLO') - context.setVariable('PYHELLO_ROOT_DIR', pyhello_root_dir, overwrite=True) - context.addToPath(os.path.join(pyhello_root_dir, 'bin', 'salome')) - context.addToLdLibraryPath(os.path.join(pyhello_root_dir, 'lib', 'salome')) - context.addToPythonPath(os.path.join(pyhello_root_dir, 'bin', 'salome')) - context.addToPythonPath(os.path.join(pyhello_root_dir, 'lib', 'salome')) - context.addToPythonPath(os.path.join(pyhello_root_dir, python_libdir, 'salome')) - context.addToVariable('SALOME_MODULES', 'PYHELLO', separator=',') - - pyhello_res_dir = os.path.join(pyhello_root_dir, 'share', 'salome', 'resources', 'pyhello') - context.addToVariable('SalomeAppConfig', pyhello_res_dir, separator=os.pathsep) diff --git a/bin/SalomeOnDemandTK/SMESH_and_plugins.salomexb b/bin/SalomeOnDemandTK/SMESH_and_plugins.salomexb deleted file mode 100644 index 2be560acb..000000000 --- a/bin/SalomeOnDemandTK/SMESH_and_plugins.salomexb +++ /dev/null @@ -1,9 +0,0 @@ -SMESH/bin -SMESH/lib -SMESH/share -gmsh/bin -gmsh/lib -gmsh/share -NETGENPLUGIN/bin -NETGENPLUGIN/lib -NETGENPLUGIN/share diff --git a/bin/SalomeOnDemandTK/SMESH_and_plugins.salomexd b/bin/SalomeOnDemandTK/SMESH_and_plugins.salomexd deleted file mode 100644 index 829d7abdf..000000000 --- a/bin/SalomeOnDemandTK/SMESH_and_plugins.salomexd +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "SMESH_and_plugins", - "descr": "SALOME extension", - "depends_on": ["Base", "GEOM"], - "author": "SALOME Team", - "components": ["SMESH", "gmsh", "NETGENPLUGIN"] -} diff --git a/bin/SalomeOnDemandTK/SMESH_and_plugins_env.py b/bin/SalomeOnDemandTK/SMESH_and_plugins_env.py deleted file mode 100644 index 7b6057693..000000000 --- a/bin/SalomeOnDemandTK/SMESH_and_plugins_env.py +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding:utf-8 -*- - -""" -Add a custom environment to the SALOME extension. -""" - -import os -import sys - - -def init(context, root_dir): - """ - Set an environment for an extension on start of SALOME app. - - Args: - context - an SalomeContext object. - root_dir - a path to __SALOME_EXT__ directory. - - Returns: - None. - """ - - python_version = '{}.{}'.format(sys.version_info[0], sys.version_info[1]) - python_libdir = os.path.join('lib', 'python' + python_version, 'site-packages') - - reinitialise_paths = True - - #[SMESH] - smesh_root_dir = os.path.join(root_dir, 'SMESH') - context.setVariable('SMESH_ROOT_DIR', smesh_root_dir, overwrite=True) - context.addToPath(os.path.join(smesh_root_dir, 'bin', 'salome')) - context.addToLdLibraryPath(os.path.join(smesh_root_dir, 'lib', 'salome')) - context.addToPythonPath(os.path.join(smesh_root_dir, 'bin', 'salome')) - context.addToPythonPath(os.path.join(smesh_root_dir, 'lib', 'salome')) - context.addToPythonPath(os.path.join(smesh_root_dir, python_libdir, 'salome')) - if reinitialise_paths: - context.setVariable('SMESH_MeshersList', 'StdMeshers', overwrite=True) - else: - context.addToVariable('SMESH_MeshersList', 'StdMeshers', separator=os.pathsep) - - smesh_res_dir = os.path.join(smesh_root_dir, 'share', 'salome', 'resources', 'smesh') - context.addToVariable('SalomeAppConfig', smesh_res_dir, separator=os.pathsep) - - #[gmsh] - gmsh_root_dir = os.path.join(root_dir, 'gmsh') - context.setVariable('GMSHHOME', gmsh_root_dir, overwrite=True) - context.setVariable('GMSH_ROOT_DIR', gmsh_root_dir, overwrite=True) - context.addToLdLibraryPath(os.path.join(gmsh_root_dir, 'lib')) - - #[NETGENPLUGIN] - netgenplugin_root_dir = os.path.join(root_dir, 'NETGENPLUGIN') - context.setVariable('NETGENPLUGIN_ROOT_DIR', netgenplugin_root_dir, overwrite=True) - context.addToPath(os.path.join(netgenplugin_root_dir, 'bin', 'salome')) - context.addToLdLibraryPath(os.path.join(netgenplugin_root_dir, 'lib', 'salome')) - context.addToPythonPath(os.path.join(netgenplugin_root_dir, 'bin', 'salome')) - context.addToPythonPath(os.path.join(netgenplugin_root_dir, 'lib', 'salome')) - context.addToPythonPath(os.path.join(netgenplugin_root_dir, python_libdir, 'salome')) - context.addToVariable('SMESH_MeshersList', 'NETGENPlugin', separator=os.pathsep) - - netgenplugin_res_dir = os.path.join(netgenplugin_root_dir, - 'share', 'salome', 'resources', 'netgenplugin') - context.addToVariable('SalomeAppConfig', netgenplugin_res_dir, separator=os.pathsep) -- 2.39.2