+++ /dev/null
-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
+++ /dev/null
-{
- "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" ]
-}
-
+++ /dev/null
-
-#!/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
+++ /dev/null
-ATOMIC/bin
-ATOMIC/lib
-ATOMIC/share
+++ /dev/null
-{
- "name": "Atomic",
- "descr": "SALOME extension",
- "depends_on": ["Base"],
- "author": "SALOME Team",
- "components": ["ATOMIC"]
-}
+++ /dev/null
-#!/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)
+++ /dev/null
-KERNEL/bin
-KERNEL/lib
-KERNEL/share
-GUI/bin
-GUI/lib
-GUI/share
+++ /dev/null
-{
- "name": "Base",
- "descr": "SALOME extension",
- "depends_on": [],
- "author": "SALOME Team",
- "components": ["KERNEL", "GUI"]
-}
+++ /dev/null
-
-#!/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)
+++ /dev/null
-GEOM/bin
-GEOM/lib
-GEOM/share
+++ /dev/null
-{
- "name": "GEOM",
- "descr": "SALOME extension",
- "depends_on": ["Base"],
- "author": "SALOME Team",
- "components": ["GEOM"]
-}
+++ /dev/null
-#!/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)
+++ /dev/null
-PYHELLO/bin/salome
-PYHELLO/lib
-PYHELLO/share
+++ /dev/null
-{
- "name": "PYHELLO",
- "descr": "SALOME extension",
- "depends_on": ["Base"],
- "author": "SALOME Team",
- "components": ["PYHELLO"]
-}
+++ /dev/null
-#!/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)
+++ /dev/null
-SMESH/bin
-SMESH/lib
-SMESH/share
-gmsh/bin
-gmsh/lib
-gmsh/share
-NETGENPLUGIN/bin
-NETGENPLUGIN/lib
-NETGENPLUGIN/share
+++ /dev/null
-{
- "name": "SMESH_and_plugins",
- "descr": "SALOME extension",
- "depends_on": ["Base", "GEOM"],
- "author": "SALOME Team",
- "components": ["SMESH", "gmsh", "NETGENPLUGIN"]
-}
+++ /dev/null
-#!/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)