From 1e5fa46fe1c6130d83712fd8bb959a1f2bf47cbf Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Fri, 1 Jul 2016 11:31:21 +0200 Subject: [PATCH] Implementation of the project notion, remove all pyconf regardings the products from salomeTools --- commands/config.py | 180 ++++++++++++++------ commands/job.py | 6 +- commands/makeinstall.py | 2 +- data/compil_scripts/CAS_6.7.sh | 54 ------ data/compil_scripts/Homard.sh | 27 --- data/compil_scripts/Jinja2.sh | 28 --- data/compil_scripts/MeshGems.sh | 27 --- data/compil_scripts/ParMetis-3.sh | 41 ----- data/compil_scripts/ParaView-5.0.sh | 170 ------------------ data/compil_scripts/PyQt.sh | 45 ----- data/compil_scripts/Pygments.sh | 28 --- data/compil_scripts/Python.sh | 111 ------------ data/compil_scripts/Sphinx.sh | 34 ---- data/compil_scripts/boost.sh | 40 ----- data/compil_scripts/cgns.sh | 49 ------ data/compil_scripts/cmake.sh | 38 ----- data/compil_scripts/cppunit.sh | 41 ----- data/compil_scripts/cython.sh | 33 ---- data/compil_scripts/dateutil.sh | 40 ----- data/compil_scripts/distribute.sh | 40 ----- data/compil_scripts/docutils.sh | 25 --- data/compil_scripts/doxygen.sh | 42 ----- data/compil_scripts/fftw.sh | 39 ----- data/compil_scripts/freeimage-3.16.0.sh | 83 --------- data/compil_scripts/freetype.sh | 45 ----- data/compil_scripts/graphviz-2.38.0.sh | 52 ------ data/compil_scripts/hdf5CMake.sh | 64 ------- data/compil_scripts/lapack.sh | 82 --------- data/compil_scripts/libxml2_2_9_2.sh | 56 ------ data/compil_scripts/markupsafe.sh | 38 ----- data/compil_scripts/matplotlib.sh | 42 ----- data/compil_scripts/medCMake.sh | 54 ------ data/compil_scripts/metis.sh | 41 ----- data/compil_scripts/netgen.sh | 65 ------- data/compil_scripts/numpy.sh | 23 --- data/compil_scripts/omniORB.sh | 52 ------ data/compil_scripts/omniORBpy.sh | 39 ----- data/compil_scripts/opencv.sh | 51 ------ data/compil_scripts/pyparsing.sh | 40 ----- data/compil_scripts/pyreadline.sh | 12 -- data/compil_scripts/pytz.sh | 39 ----- data/compil_scripts/qt.sh | 52 ------ data/compil_scripts/qwt-6.1.0.sh | 53 ------ data/compil_scripts/scipy.sh | 34 ---- data/compil_scripts/scotch-5.1.12.sh | 45 ----- data/compil_scripts/setuptools.sh | 28 --- data/compil_scripts/sip.sh | 53 ------ data/compil_scripts/six.sh | 40 ----- data/compil_scripts/swig.sh | 57 ------- data/compil_scripts/tcl.sh | 38 ----- data/compil_scripts/tk.sh | 45 ----- data/env_scripts/CAS.py | 41 ----- data/env_scripts/Cython.py | 16 -- data/env_scripts/Homard.py | 12 -- data/env_scripts/Jinja2.py | 19 --- data/env_scripts/MeshGems.py | 34 ---- data/env_scripts/ParMetis.py | 16 -- data/env_scripts/ParaView.py | 80 --------- data/env_scripts/PyQt.py | 28 --- data/env_scripts/Pygments.py | 16 -- data/env_scripts/Python.py | 46 ----- data/env_scripts/Sphinx.py | 18 -- data/env_scripts/boost.py | 21 --- data/env_scripts/cgns.py | 13 -- data/env_scripts/cmake.py | 14 -- data/env_scripts/cppunit.py | 23 --- data/env_scripts/dateutil.py | 17 -- data/env_scripts/distene_license.py | 23 --- data/env_scripts/distribute.py | 20 --- data/env_scripts/docutils.py | 16 -- data/env_scripts/doxygen.py | 14 -- data/env_scripts/fftw.py | 33 ---- data/env_scripts/freeimage.py | 21 --- data/env_scripts/freetype.py | 15 -- data/env_scripts/gl2ps.py | 17 -- data/env_scripts/graphviz.py | 30 ---- data/env_scripts/hdf5.py | 28 --- data/env_scripts/lapack.py | 27 --- data/env_scripts/libxml2.py | 21 --- data/env_scripts/markupsafe.py | 20 --- data/env_scripts/matplotlib.py | 14 -- data/env_scripts/med.py | 24 --- data/env_scripts/metis.py | 11 -- data/env_scripts/netgen.py | 25 --- data/env_scripts/numpy.py | 15 -- data/env_scripts/omniORB.py | 30 ---- data/env_scripts/omniORBpy.py | 11 -- data/env_scripts/opencv.py | 17 -- data/env_scripts/pyparsing.py | 12 -- data/env_scripts/pyreadline.py | 12 -- data/env_scripts/pytz.py | 17 -- data/env_scripts/qt.py | 34 ---- data/env_scripts/qwt.py | 16 -- data/env_scripts/scipy.py | 13 -- data/env_scripts/scotch.py | 11 -- data/env_scripts/setuptools.py | 19 --- data/env_scripts/sip.py | 27 --- data/env_scripts/six.py | 20 --- data/env_scripts/swig.py | 21 --- data/env_scripts/tcl.py | 25 --- data/env_scripts/tk.py | 23 --- data/products/CAS.pyconf | 15 -- data/products/Cython.pyconf | 15 -- data/products/GEOM.pyconf | 38 ----- data/products/GUI.pyconf | 37 ---- data/products/Homard.pyconf | 15 -- data/products/Jinja2.pyconf | 15 -- data/products/KERNEL.pyconf | 36 ---- data/products/LIBBATCH.pyconf | 18 -- data/products/MEDCOUPLING.pyconf | 57 ------- data/products/MeshGems.pyconf | 15 -- data/products/PRODUCT_ARCHIVE.pyconf | 53 ------ data/products/PRODUCT_CVS.pyconf | 29 ---- data/products/PRODUCT_DEFAULTVERSION.pyconf | 30 ---- data/products/PRODUCT_DEV.pyconf | 21 --- data/products/PRODUCT_FIXED.pyconf | 10 -- data/products/PRODUCT_GIT.pyconf | 23 --- data/products/PRODUCT_NATIVE.pyconf | 28 --- data/products/PRODUCT_SVN.pyconf | 28 --- data/products/PRODUCT_UNKNOWN.pyconf | 15 -- data/products/ParMetis.pyconf | 16 -- data/products/PyQt.pyconf | 18 -- data/products/Pygments.pyconf | 15 -- data/products/Python.pyconf | 15 -- data/products/SALOME_PROFILE.pyconf | 19 --- data/products/SMESH.pyconf | 46 ----- data/products/Sphinx.pyconf | 15 -- data/products/boost.pyconf | 16 -- data/products/cgns.pyconf | 16 -- data/products/cmake.pyconf | 15 -- data/products/cppunit.pyconf | 15 -- data/products/dateutil.pyconf | 15 -- data/products/distribute.pyconf | 15 -- data/products/docutils.pyconf | 15 -- data/products/doxygen.pyconf | 18 -- data/products/fftw.pyconf | 15 -- data/products/freeimage.pyconf | 15 -- data/products/freetype.pyconf | 20 --- data/products/gl2ps.pyconf | 22 --- data/products/graphviz.pyconf | 15 -- data/products/hdf5.pyconf | 16 -- data/products/lapack.pyconf | 15 -- data/products/libxml2.pyconf | 18 -- data/products/markupsafe.pyconf | 15 -- data/products/matplotlib.pyconf | 23 --- data/products/med.pyconf | 15 -- data/products/metis.pyconf | 15 -- data/products/netgen.pyconf | 23 --- data/products/numpy.pyconf | 15 -- data/products/omniORB.pyconf | 15 -- data/products/omniORBpy.pyconf | 15 -- data/products/opencv.pyconf | 15 -- data/products/paraview.pyconf | 15 -- data/products/pyparsing.pyconf | 15 -- data/products/pyreadline.pyconf | 15 -- data/products/pytz.pyconf | 15 -- data/products/qt.pyconf | 18 -- data/products/qwt.pyconf | 19 --- data/products/scipy.pyconf | 16 -- data/products/scotch.pyconf | 15 -- data/products/setuptools.pyconf | 15 -- data/products/sip.pyconf | 15 -- data/products/six.pyconf | 15 -- data/products/softA.pyconf | 27 --- data/products/softB.pyconf | 27 --- data/products/swig.pyconf | 15 -- data/products/tcl.pyconf | 15 -- data/products/tk.pyconf | 15 -- data/site.pyconf | 17 +- salomeTools.py | 2 + src/__init__.py | 23 +++ src/internal_config/salomeTools.pyconf | 8 +- src/product.py | 142 ++++++++++----- test/compilation/test_compilation.py | 2 +- test/config/create_user_pyconf.py | 8 +- test/job/test_job.py | 10 +- test/prepare/test_patch.py | 2 +- 177 files changed, 276 insertions(+), 4823 deletions(-) delete mode 100755 data/compil_scripts/CAS_6.7.sh delete mode 100755 data/compil_scripts/Homard.sh delete mode 100755 data/compil_scripts/Jinja2.sh delete mode 100755 data/compil_scripts/MeshGems.sh delete mode 100755 data/compil_scripts/ParMetis-3.sh delete mode 100755 data/compil_scripts/ParaView-5.0.sh delete mode 100755 data/compil_scripts/PyQt.sh delete mode 100755 data/compil_scripts/Pygments.sh delete mode 100755 data/compil_scripts/Python.sh delete mode 100755 data/compil_scripts/Sphinx.sh delete mode 100755 data/compil_scripts/boost.sh delete mode 100755 data/compil_scripts/cgns.sh delete mode 100755 data/compil_scripts/cmake.sh delete mode 100755 data/compil_scripts/cppunit.sh delete mode 100755 data/compil_scripts/cython.sh delete mode 100755 data/compil_scripts/dateutil.sh delete mode 100755 data/compil_scripts/distribute.sh delete mode 100755 data/compil_scripts/docutils.sh delete mode 100755 data/compil_scripts/doxygen.sh delete mode 100755 data/compil_scripts/fftw.sh delete mode 100755 data/compil_scripts/freeimage-3.16.0.sh delete mode 100755 data/compil_scripts/freetype.sh delete mode 100755 data/compil_scripts/graphviz-2.38.0.sh delete mode 100755 data/compil_scripts/hdf5CMake.sh delete mode 100755 data/compil_scripts/lapack.sh delete mode 100755 data/compil_scripts/libxml2_2_9_2.sh delete mode 100755 data/compil_scripts/markupsafe.sh delete mode 100755 data/compil_scripts/matplotlib.sh delete mode 100755 data/compil_scripts/medCMake.sh delete mode 100755 data/compil_scripts/metis.sh delete mode 100755 data/compil_scripts/netgen.sh delete mode 100755 data/compil_scripts/numpy.sh delete mode 100755 data/compil_scripts/omniORB.sh delete mode 100755 data/compil_scripts/omniORBpy.sh delete mode 100755 data/compil_scripts/opencv.sh delete mode 100755 data/compil_scripts/pyparsing.sh delete mode 100755 data/compil_scripts/pyreadline.sh delete mode 100755 data/compil_scripts/pytz.sh delete mode 100755 data/compil_scripts/qt.sh delete mode 100755 data/compil_scripts/qwt-6.1.0.sh delete mode 100755 data/compil_scripts/scipy.sh delete mode 100755 data/compil_scripts/scotch-5.1.12.sh delete mode 100755 data/compil_scripts/setuptools.sh delete mode 100755 data/compil_scripts/sip.sh delete mode 100755 data/compil_scripts/six.sh delete mode 100755 data/compil_scripts/swig.sh delete mode 100755 data/compil_scripts/tcl.sh delete mode 100755 data/compil_scripts/tk.sh delete mode 100644 data/env_scripts/CAS.py delete mode 100644 data/env_scripts/Cython.py delete mode 100755 data/env_scripts/Homard.py delete mode 100755 data/env_scripts/Jinja2.py delete mode 100644 data/env_scripts/MeshGems.py delete mode 100644 data/env_scripts/ParMetis.py delete mode 100644 data/env_scripts/ParaView.py delete mode 100644 data/env_scripts/PyQt.py delete mode 100755 data/env_scripts/Pygments.py delete mode 100644 data/env_scripts/Python.py delete mode 100755 data/env_scripts/Sphinx.py delete mode 100755 data/env_scripts/boost.py delete mode 100644 data/env_scripts/cgns.py delete mode 100755 data/env_scripts/cmake.py delete mode 100644 data/env_scripts/cppunit.py delete mode 100644 data/env_scripts/dateutil.py delete mode 100644 data/env_scripts/distene_license.py delete mode 100644 data/env_scripts/distribute.py delete mode 100755 data/env_scripts/docutils.py delete mode 100755 data/env_scripts/doxygen.py delete mode 100644 data/env_scripts/fftw.py delete mode 100644 data/env_scripts/freeimage.py delete mode 100644 data/env_scripts/freetype.py delete mode 100755 data/env_scripts/gl2ps.py delete mode 100644 data/env_scripts/graphviz.py delete mode 100644 data/env_scripts/hdf5.py delete mode 100644 data/env_scripts/lapack.py delete mode 100644 data/env_scripts/libxml2.py delete mode 100644 data/env_scripts/markupsafe.py delete mode 100644 data/env_scripts/matplotlib.py delete mode 100644 data/env_scripts/med.py delete mode 100755 data/env_scripts/metis.py delete mode 100644 data/env_scripts/netgen.py delete mode 100644 data/env_scripts/numpy.py delete mode 100644 data/env_scripts/omniORB.py delete mode 100644 data/env_scripts/omniORBpy.py delete mode 100755 data/env_scripts/opencv.py delete mode 100644 data/env_scripts/pyparsing.py delete mode 100755 data/env_scripts/pyreadline.py delete mode 100644 data/env_scripts/pytz.py delete mode 100644 data/env_scripts/qt.py delete mode 100755 data/env_scripts/qwt.py delete mode 100644 data/env_scripts/scipy.py delete mode 100755 data/env_scripts/scotch.py delete mode 100644 data/env_scripts/setuptools.py delete mode 100644 data/env_scripts/sip.py delete mode 100644 data/env_scripts/six.py delete mode 100644 data/env_scripts/swig.py delete mode 100644 data/env_scripts/tcl.py delete mode 100755 data/env_scripts/tk.py delete mode 100644 data/products/CAS.pyconf delete mode 100644 data/products/Cython.pyconf delete mode 100644 data/products/GEOM.pyconf delete mode 100644 data/products/GUI.pyconf delete mode 100644 data/products/Homard.pyconf delete mode 100644 data/products/Jinja2.pyconf delete mode 100644 data/products/KERNEL.pyconf delete mode 100644 data/products/LIBBATCH.pyconf delete mode 100644 data/products/MEDCOUPLING.pyconf delete mode 100644 data/products/MeshGems.pyconf delete mode 100644 data/products/PRODUCT_ARCHIVE.pyconf delete mode 100644 data/products/PRODUCT_CVS.pyconf delete mode 100644 data/products/PRODUCT_DEFAULTVERSION.pyconf delete mode 100644 data/products/PRODUCT_DEV.pyconf delete mode 100644 data/products/PRODUCT_FIXED.pyconf delete mode 100644 data/products/PRODUCT_GIT.pyconf delete mode 100644 data/products/PRODUCT_NATIVE.pyconf delete mode 100644 data/products/PRODUCT_SVN.pyconf delete mode 100644 data/products/PRODUCT_UNKNOWN.pyconf delete mode 100644 data/products/ParMetis.pyconf delete mode 100644 data/products/PyQt.pyconf delete mode 100644 data/products/Pygments.pyconf delete mode 100644 data/products/Python.pyconf delete mode 100644 data/products/SALOME_PROFILE.pyconf delete mode 100644 data/products/SMESH.pyconf delete mode 100644 data/products/Sphinx.pyconf delete mode 100644 data/products/boost.pyconf delete mode 100644 data/products/cgns.pyconf delete mode 100644 data/products/cmake.pyconf delete mode 100644 data/products/cppunit.pyconf delete mode 100644 data/products/dateutil.pyconf delete mode 100644 data/products/distribute.pyconf delete mode 100644 data/products/docutils.pyconf delete mode 100644 data/products/doxygen.pyconf delete mode 100644 data/products/fftw.pyconf delete mode 100644 data/products/freeimage.pyconf delete mode 100644 data/products/freetype.pyconf delete mode 100644 data/products/gl2ps.pyconf delete mode 100644 data/products/graphviz.pyconf delete mode 100644 data/products/hdf5.pyconf delete mode 100644 data/products/lapack.pyconf delete mode 100644 data/products/libxml2.pyconf delete mode 100644 data/products/markupsafe.pyconf delete mode 100644 data/products/matplotlib.pyconf delete mode 100644 data/products/med.pyconf delete mode 100644 data/products/metis.pyconf delete mode 100644 data/products/netgen.pyconf delete mode 100644 data/products/numpy.pyconf delete mode 100644 data/products/omniORB.pyconf delete mode 100644 data/products/omniORBpy.pyconf delete mode 100644 data/products/opencv.pyconf delete mode 100644 data/products/paraview.pyconf delete mode 100644 data/products/pyparsing.pyconf delete mode 100644 data/products/pyreadline.pyconf delete mode 100644 data/products/pytz.pyconf delete mode 100644 data/products/qt.pyconf delete mode 100644 data/products/qwt.pyconf delete mode 100644 data/products/scipy.pyconf delete mode 100644 data/products/scotch.pyconf delete mode 100644 data/products/setuptools.pyconf delete mode 100644 data/products/sip.pyconf delete mode 100644 data/products/six.pyconf delete mode 100644 data/products/softA.pyconf delete mode 100644 data/products/softB.pyconf delete mode 100644 data/products/swig.pyconf delete mode 100644 data/products/tcl.pyconf delete mode 100644 data/products/tk.pyconf diff --git a/commands/config.py b/commands/config.py index f839f61..b9eb639 100644 --- a/commands/config.py +++ b/commands/config.py @@ -40,7 +40,7 @@ parser.add_option('i', 'info', 'string', 'info', parser.add_option('l', 'list', 'boolean', 'list', _("list all available applications.")) parser.add_option('c', 'copy', 'boolean', 'copy', - _("""copy a config file to the personnal config files directory. + _("""copy a config file to the personal config files directory. \tWARNING the included files are not copied. \tIf a name is given the new config file takes the given name.""")) parser.add_option('n', 'no_label', 'boolean', 'no_label', @@ -55,7 +55,7 @@ class ConfigOpener: def __init__(self, pathList): '''Initialization - :param pathList list: The list of paths where to serach a pyconf. + :param pathList list: The list of paths where to search a pyconf. ''' self.pathList = pathList @@ -107,6 +107,27 @@ class ConfigManager: var['personalDir'] = os.path.join(os.path.expanduser('~'), '.salomeTools') + src.ensure_path_exists(var['personalDir']) + + var['personal_applications_dir'] = os.path.join(var['personalDir'], + "Applications") + src.ensure_path_exists(var['personal_applications_dir']) + + var['personal_products_dir'] = os.path.join(var['personalDir'], + "products") + src.ensure_path_exists(var['personal_products_dir']) + + var['personal_archives_dir'] = os.path.join(var['personalDir'], + "Archives") + src.ensure_path_exists(var['personal_archives_dir']) + + var['personal_jobs_dir'] = os.path.join(var['personalDir'], + "Jobs") + src.ensure_path_exists(var['personal_jobs_dir']) + + var['personal_machines_dir'] = os.path.join(var['personalDir'], + "Machines") + src.ensure_path_exists(var['personal_machines_dir']) # read linux distributions dictionary distrib_cfg = src.pyconf.Config(os.path.join(var['srcDir'], @@ -219,7 +240,7 @@ class ConfigManager: # apply overwrite from command line if needed for rule in self.get_command_line_overrides(options, ["INTERNAL"]): exec('cfg.' + rule) # this cannot be factorized because of the exec - + # ===================================================================== # Load SITE config file # search only in the data directory @@ -241,23 +262,119 @@ class ConfigManager: + "site.pyconf and edit the file") raise src.SatException( e ); - # add user local path for configPath - site_cfg.SITE.config.config_path.append( - os.path.join(cfg.VARS.personalDir, 'Applications'), - "User applications path") - merger.merge(cfg, site_cfg) # apply overwrite from command line if needed for rule in self.get_command_line_overrides(options, ["SITE"]): exec('cfg.' + rule) # this cannot be factorized because of the exec - + # ===================================================================== + # Load the PROJECTS + if "PROJECTS" in cfg: + cfg.PROJECTS.addMapping("projects", + src.pyconf.Mapping(cfg.PROJECTS), + "The projects definition\n") + for project_pyconf_path in cfg.PROJECTS.project_file_paths: + if not os.path.exists(project_pyconf_path): + #msg = _("WARNING: The project file %s cannot be found. " + # "It will be ignored\n" % project_pyconf_path) + #sys.stdout.write(src.printcolors.printcWarning(msg)) + continue + project_name = os.path.basename( + project_pyconf_path)[:-len(".pyconf")] + try: + project_cfg = src.pyconf.Config(open(project_pyconf_path)) + except Exception as e: + raise src.SatException(_("Error in configuration file: " + "%(file_path)s\n %(error)s") % \ + {'file_path' : project_cfg, 'error': str(e) }) + cfg.PROJECTS.projects.addMapping(project_name, + src.pyconf.Mapping(cfg.PROJECTS.projects), + "The %s project\n" % project_name) + cfg.PROJECTS.projects[project_name]=project_cfg + cfg.PROJECTS.projects[project_name]["file_path"] = \ + project_pyconf_path + + + # apply overwrite from command line if needed + for rule in self.get_command_line_overrides(options, ["PROJECTS"]): + exec('cfg.' + rule) # this cannot be factorized because of the exec + + # ===================================================================== + # Create the paths where to search the application configurations, + # the product configurations, the products archives, + # the jobs configurations and the machines configurations + cfg.addMapping("PATHS", src.pyconf.Mapping(cfg), "The paths\n") + cfg.PATHS["APPLICATIONPATH"] = src.pyconf.Sequence(cfg.PATHS) + cfg.PATHS.APPLICATIONPATH.append(cfg.VARS.personal_applications_dir, "") + + cfg.PATHS["PRODUCTPATH"] = src.pyconf.Sequence(cfg.PATHS) + cfg.PATHS.PRODUCTPATH.append(cfg.VARS.personal_products_dir, "") + cfg.PATHS["ARCHIVEPATH"] = src.pyconf.Sequence(cfg.PATHS) + cfg.PATHS.ARCHIVEPATH.append(cfg.VARS.personal_archives_dir, "") + cfg.PATHS["JOBPATH"] = src.pyconf.Sequence(cfg.PATHS) + cfg.PATHS.JOBPATH.append(cfg.VARS.personal_jobs_dir, "") + cfg.PATHS["MACHINEPATH"] = src.pyconf.Sequence(cfg.PATHS) + cfg.PATHS.MACHINEPATH.append(cfg.VARS.personal_machines_dir, "") + # Loop over the projects in order to complete the PATHS variables + for project in cfg.PROJECTS.projects: + for PATH in ["APPLICATIONPATH", + "PRODUCTPATH", + "ARCHIVEPATH", + "JOBPATH", + "MACHINEPATH"]: + if PATH not in cfg.PROJECTS.projects[project]: + continue + cfg.PATHS[PATH].append(cfg.PROJECTS.projects[project][PATH], "") + + # apply overwrite from command line if needed + for rule in self.get_command_line_overrides(options, ["PATHS"]): + exec('cfg.' + rule) # this cannot be factorized because of the exec + + # ===================================================================== + # Load product config files in PRODUCTS section + products_cfg = src.pyconf.Config() + products_cfg.addMapping("PRODUCTS", + src.pyconf.Mapping(products_cfg), + "The products\n") + src.pyconf.streamOpener = ConfigOpener(cfg.PATHS.PRODUCTPATH) + for products_dir in cfg.PATHS.PRODUCTPATH: + # Loop on all files that are in softsDir directory + # and read their config + for fName in os.listdir(products_dir): + if fName.endswith(".pyconf"): + pName = fName[:-len(".pyconf")] + if pName in products_cfg.PRODUCTS: + continue + try: + prod_cfg = src.pyconf.Config(open( + os.path.join(products_dir, + fName))) + except src.pyconf.ConfigError as e: + raise src.SatException(_( + "Error in configuration file: %(prod)s\n %(error)s") % \ + {'prod' : fName, 'error': str(e) }) + except IOError as error: + e = str(error) + raise src.SatException( e ); + except Exception as e: + raise src.SatException(_( + "Error in configuration file: %(prod)s\n %(error)s") % \ + {'prod' : fName, 'error': str(e) }) + + products_cfg.PRODUCTS[pName] = prod_cfg + + merger.merge(cfg, products_cfg) + + # apply overwrite from command line if needed + for rule in self.get_command_line_overrides(options, ["PRODUCTS"]): + exec('cfg.' + rule) # this cannot be factorized because of the exec + # ===================================================================== # Load APPLICATION config file if application is not None: # search APPLICATION file in all directories in configPath - cp = cfg.SITE.config.config_path + cp = cfg.PATHS.APPLICATIONPATH src.pyconf.streamOpener = ConfigOpener(cp) try: application_cfg = src.pyconf.Config(application + '.pyconf') @@ -282,39 +399,6 @@ class ConfigManager: 'launcher_name' not in cfg.APPLICATION.profile): cfg.APPLICATION.profile.launcher_name = 'salome' - # ===================================================================== - # Load product config files in PRODUCTS section - - # The directory containing the softwares definition - products_dir = os.path.join(cfg.VARS.datadir, 'products') - - # Loop on all files that are in softsDir directory - # and read their config - for fName in os.listdir(products_dir): - if fName.endswith(".pyconf"): - src.pyconf.streamOpener = ConfigOpener([products_dir]) - try: - prod_cfg = src.pyconf.Config(open( - os.path.join(products_dir, fName))) - except src.pyconf.ConfigError as e: - raise src.SatException(_( - "Error in configuration file: %(prod)s\n %(error)s") % \ - {'prod' : fName, 'error': str(e) }) - except IOError as error: - e = str(error) - raise src.SatException( e ); - except Exception as e: - raise src.SatException(_( - "Error in configuration file: %(prod)s\n %(error)s") % \ - {'prod' : fName, 'error': str(e) }) - - merger.merge(cfg.PRODUCTS, prod_cfg) - - # apply overwrite from command line if needed - for rule in self.get_command_line_overrides(options, ["PRODUCTS"]): - exec('cfg.' + rule) # this cannot be factorized because of the exec - - # ===================================================================== # load USER config self.set_user_config_file(cfg) @@ -690,7 +774,7 @@ def run(args, runner, logger): src.system.show_in_editor(editor, usercfg, logger) else: # search for file .pyconf and open it - for path in runner.cfg.SITE.config.config_path: + for path in runner.cfg.PATHS.APPLICATIONPATH: pyconf_path = os.path.join(path, runner.cfg.VARS.application + ".pyconf") if os.path.exists(pyconf_path): @@ -718,7 +802,7 @@ def run(args, runner, logger): # get application file path source = runner.cfg.VARS.application + '.pyconf' source_full_path = "" - for path in runner.cfg.SITE.config.config_path: + for path in runner.cfg.PATHS.APPLICATIONPATH: # ignore personal directory if path == runner.cfg.VARS.personalDir: continue @@ -735,9 +819,9 @@ def run(args, runner, logger): if len(args) > 0: # a name is given as parameter, use it dest = args[0] - elif 'copy_prefix' in runner.cfg.SITE.config: + elif 'copy_prefix' in runner.cfg.INTERNAL.config: # use prefix - dest = (runner.cfg.SITE.config.copy_prefix + dest = (runner.cfg.INTERNAL.config.copy_prefix + runner.cfg.VARS.application) else: # use same name as source @@ -758,7 +842,7 @@ def run(args, runner, logger): elif options.list: lproduct = list() # search in all directories that can have pyconf applications - for path in runner.cfg.SITE.config.config_path: + for path in runner.cfg.PATHS.APPLICATIONPATH: # print a header if not options.no_label: logger.write("------ %s\n" % src.printcolors.printcHeader(path)) diff --git a/commands/job.py b/commands/job.py index ca56a01..8d1a63b 100644 --- a/commands/job.py +++ b/commands/job.py @@ -123,9 +123,9 @@ def run(args, runner, logger): logger.flush() # Execute the command code = sat_command(end_cmd, - batch = True, - verbose = 0, - logger_add_link = logger) + batch = True, + verbose = 0, + logger_add_link = logger) # Print the status of the command if code == 0: nb_pass += 1 diff --git a/commands/makeinstall.py b/commands/makeinstall.py index 3f71aef..ab31dd2 100644 --- a/commands/makeinstall.py +++ b/commands/makeinstall.py @@ -108,7 +108,7 @@ def makeinstall_product(p_name_info, config, logger): # Logging logger.write("\n", 4, False) logger.write("################ ", 4) - header = _("Make of %s") % src.printcolors.printcLabel(p_name) + header = _("Make install of %s") % src.printcolors.printcLabel(p_name) header += " %s " % ("." * (20 - len(p_name))) logger.write(header, 3) logger.write("\n", 4, False) diff --git a/data/compil_scripts/CAS_6.7.sh b/data/compil_scripts/CAS_6.7.sh deleted file mode 100755 index 7ad062a..0000000 --- a/data/compil_scripts/CAS_6.7.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -echo "###############################################" -echo "CASCADE" $VERSION -echo "###############################################" - -rm -Rf $PRODUCT_INSTALL - -echo -echo "*** build_configure" -./build_configure -if [ $? -ne 0 ] -then - echo "ERROR on build_configure" - exit 1 -fi - -echo -echo "*** configure" -./configure \ - --without-tcl --without-tk --disable-draw \ - --with-freetype=$FREETYPEDIR \ - --enable-debug=no --enable-production=yes \ - --with-gl2ps=$GL2PSDIR \ - --with-freeimage=$FREEIMAGEDIR \ - --prefix=$PRODUCT_INSTALL - -if [ $? -ne 0 ] -then - echo "ERROR on configure" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/Homard.sh b/data/compil_scripts/Homard.sh deleted file mode 100755 index 3ef29b9..0000000 --- a/data/compil_scripts/Homard.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "Homard" $VERSION -echo "##########################################################################" - -echo -echo "*** mkdir" $PRODUCT_INSTALL -mkdir -p $PRODUCT_INSTALL -if [ $? -ne 0 ] -then - echo "ERROR on mkdir" - exit 1 -fi - -echo -echo "*** cp -r "$SOURCE_DIR"/* " $PRODUCT_INSTALL"/homard" -cp -r $SOURCE_DIR/* $PRODUCT_INSTALL/homard -if [ $? -ne 0 ] -then - echo "ERROR on cp" - exit 2 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/Jinja2.sh b/data/compil_scripts/Jinja2.sh deleted file mode 100755 index c556fa0..0000000 --- a/data/compil_scripts/Jinja2.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "Jinja2" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -cp -r $SOURCE_DIR/* . - -mkdir -p ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages -PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:${PYTHONPATH} - -# unset PYTHONDONTWRITEBYTECODE set by default on MD10 -PYTHONDONTWRITEBYTECODE= - -echo -echo "*** setup.py" -python setup.py install --prefix=${PRODUCT_INSTALL} --install-lib ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages -if [ $? -ne 0 ] -then - echo "ERROR on setup" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/MeshGems.sh b/data/compil_scripts/MeshGems.sh deleted file mode 100755 index c37e7c4..0000000 --- a/data/compil_scripts/MeshGems.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "MeshGems" $VERSION -echo "##########################################################################" - -echo -echo "*** mkdir" $PRODUCT_INSTALL -mkdir -p $PRODUCT_INSTALL -if [ $? -ne 0 ] -then - echo "ERROR on mkdir" - exit 1 -fi - -echo -echo "*** cp -r "$SOURCE_DIR"/* " $PRODUCT_INSTALL -cp -r $SOURCE_DIR/* $PRODUCT_INSTALL -if [ $? -ne 0 ] -then - echo "ERROR on cp" - exit 2 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/ParMetis-3.sh b/data/compil_scripts/ParMetis-3.sh deleted file mode 100755 index b277272..0000000 --- a/data/compil_scripts/ParMetis-3.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "ParMetis" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -cp -r $SOURCE_DIR/* . - -echo -echo "*** apply sed for 64bits platforms" -sed -e 's/CC = mpicc/CC = mpicc -fPIC/g' Makefile.in > Makefile.in_new -cp Makefile.in_new Makefile.in - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -# install -echo "** install" -mkdir -p $PRODUCT_INSTALL -mkdir -p $PRODUCT_INSTALL"/METISLib" -mkdir -p $PRODUCT_INSTALL"/ParMETISLib" - -cp libparmetis.a $PRODUCT_INSTALL -cp libmetis.a $PRODUCT_INSTALL -cp parmetis.h $PRODUCT_INSTALL -cp Graphs/ptest Graphs/mtest Graphs/parmetis Graphs/pometis $PRODUCT_INSTALL - -cp METISLib/*.h $PRODUCT_INSTALL"/METISLib" -cp ParMETISLib/*.h $PRODUCT_INSTALL"/ParMETISLib" - -echo -echo "########## END" - diff --git a/data/compil_scripts/ParaView-5.0.sh b/data/compil_scripts/ParaView-5.0.sh deleted file mode 100755 index 1a66bb0..0000000 --- a/data/compil_scripts/ParaView-5.0.sh +++ /dev/null @@ -1,170 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "ParaView" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -PVLIBVERSION=`echo ${VERSION} | awk -F. '{printf("%d.%d",$1,$2)}'` -export python_name=python$PYTHON_VERSION - -CMAKE_OPTIONS="" - -### verbose log -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_VERBOSE_MAKEFILE=ON" - -### common settings -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_INSTALL}" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_BUILD_TYPE:STRING=Release" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DBUILD_SHARED_LIBS:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DBUILD_TESTING:BOOL=OFF" - - -### compiler settings -if [[ $BITS == "64" ]] -then - CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_CXX_FLAGS:STRING=-m64" - CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_C_FLAGS:STRING=-m64" -fi - -### Paraview general settings -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_USE_VISITBRIDGE=ON" - -if [ -n "$MPI_ROOT_DIR" ] -then - CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_USE_MPI:BOOL=ON" - CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_CXX_COMPILER:STRING=${MPI_ROOT_DIR}/bin/mpic++" - CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_C_COMPILER:STRING=${MPI_ROOT_DIR}/bin/mpicc" -else - CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_USE_MPI:BOOL=OFF" - CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_CXX_COMPILER:STRING=`which g++`" - CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_C_COMPILER:STRING=`which gcc`" -fi - -### VTK general settings -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DVTK_USE_64BIT_IDS:BOOL=OFF" # issue 1779 -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DVTK_NO_PYTHON_THREADS:BOOL=OFF" # Make sure Python is thread-safe in ParaView -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DVTK_REPORT_OPENGL_ERRORS:BOOL=OFF" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DVTK_PYTHON_FULL_THREADSAFE=ON" -### OpenGL2 backend for performance improvment -# https://blog.kitware.com/new-opengl-rendering-in-vtk/ -#CMAKE_OPTIONS=$CMAKE_OPTIONS" -DVTK_RENDERING_BACKEND=OpenGL2" -### OpenMP to speed computation of some filters -# https://blog.kitware.com/simple-parallel-computing-with-vtksmptools-2/ -# https://blog.kitware.com/accelerated-filters-in-paraview-5/ -#CMAKE_OPTIONS=$CMAKE_OPTIONS" -DVTK_SMP_IMPLEMENTATION_TYPE=OpenMP" - -### Qt settings -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_BUILD_QT_GUI:BOOL=ON" -if [ -n "$QT5_ROOT_DIR" ] -then - CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_QT_VERSION=5" -fi - -### Python settings -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_ENABLE_PYTHON:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPYTHON_EXECUTABLE:STRING=${PYTHON_ROOT_DIR}/bin/${python_name}" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPYTHON_INCLUDE_DIR:STRING=${PYTHON_ROOT_DIR}/include/${python_name}" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPYTHON_LIBRARY:STRING=${PYTHON_ROOT_DIR}/lib/${python_name}/config/lib${python_name}.so" - -### No tcl tk wrap -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DVTK_WRAP_TCL:BOOL=OFF" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DVTK_WRAP_JAVA:BOOL=OFF" - -### HDF5 settings -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DVTK_USE_SYSTEM_HDF5:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DHDF5_DIR:PATH=${HDF5_ROOT_DIR}/share/cmake/hdf5" - - -### VisIt Database bridge settings -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_USE_VISITBRIDGE=ON" - -### Boost settings (needed when activating VisIt bridge) -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DBOOST_ROOT=${BOOST_ROOT_DIR}" - -### gl2ps settings -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DVTK_USE_SYSTEM_GL2PS:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DGL2PS_INCLUDE_DIR:STRING=${GL2PS_ROOT_DIR}/include" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DGL2PS_LIBRARY:STRING=${GL2PS_ROOT_DIR}/lib/libgl2ps.so" - -### libxml2 settings -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DVTK_USE_SYSTEM_LIBXML2:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DLIBXML2_INCLUDE_DIR:STRING=${LIBXML2_ROOT_DIR}/include/libxml2" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DLIBXML2_LIBRARIES:STRING=${LIBXML2_ROOT_DIR}/lib/libxml2.so" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DLIBXML2_XMLLINT_EXECUTABLE=${LIBXML2_ROOT_DIR}/bin/xmllint" - -### freetype settings -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DVTK_USE_SYSTEM_FREETYPE:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DFREETYPE_INCLUDE_DIRS:STRING=${FREETYPE_ROOT_DIR}/include/freetype2" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DFREETYPE_LIBRARY:STRING=${FREETYPE_ROOT_DIR}/lib/libfreetype.so" - -### Extra options since OCC presta to improve Paraview for Salome -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_USE_3DGLYPH:BOOL=OFF" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_USE_EXTENDED_OPENFILEDIALOG:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_USE_TIMECONTROL_SLIDER:BOOL=ON" - -### Extra options (switch off non-used Paraview plug-ins) -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_BUILD_PLUGIN_Moments:BOOL=OFF" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_BUILD_PLUGIN_PrismPlugin:BOOL=OFF" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_BUILD_PLUGIN_SLACTools:BOOL=OFF" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_BUILD_PLUGIN_SierraPlotTools:BOOL=OFF" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_BUILD_PLUGIN_PacMan:BOOL=OFF" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_BUILD_PLUGIN_MobileRemoteControl:BOOL=OFF" - -### Extra options (switch on required Paraview plug-ins) -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_BUILD_PLUGIN_EyeDomeLighting:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_BUILD_PLUGIN_ForceTime:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_BUILD_PLUGIN_H5PartReader:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_BUILD_PLUGIN_PointSprite:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_BUILD_PLUGIN_SurfaceLIC:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_ENABLE_CATALYST:BOOL=OFF" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_BUILD_PLUGIN_CoProcessingScriptGenerator:BOOL=OFF" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPARAVIEW_ENABLE_MATPLOTLIB:BOOL=ON" - -echo -echo "*** cmake" ${CMAKE_OPTIONS} -cmake ${CMAKE_OPTIONS} $SOURCE_DIR -if [ $? -ne 0 ] -then - echo "ERROR on cmake" - exit 1 -fi - -MAKE_OPTIONS="VERBOSE=1 "$MAKE_OPTIONS -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -cp -f ./VTK/VTKTargets.cmake $PRODUCT_INSTALL/lib/cmake/paraview-5.0/ && \ -sed -i "s%\(IMPORTED_LOCATION_RELEASE.*\"\).*/lib/\([^/]\+\"\)%\1${PRODUCT_INSTALL}/lib/paraview-${PVLIBVERSION}/\2%g" ${PRODUCT_INSTALL}/lib/cmake/paraview-${PVLIBVERSION}/VTKTargets.cmake && \ -sed -i "s%\(IMPORTED_LOCATION_RELEASE.*\"\).*/bin/\([^/]\+\"\)%\1${PRODUCT_INSTALL}/bin/\2%g" ${PRODUCT_INSTALL}/lib/cmake/paraview-${PVLIBVERSION}/VTKTargets.cmake && \ -sed -i "s%[^;\"]\+/qt-[0-9\.]\+/lib/\([^;]\+\)%${QTDIR}/lib/\1%g" ${PRODUCT_INSTALL}/lib/cmake/paraview-${PVLIBVERSION}/VTKTargets.cmake && \ -sed -i "s%[^;\"]\+/Python-[0-9\.]\+/lib/\([^;]\+\)%${PYTHON_ROOT_DIR}/lib/\1%g" ${PRODUCT_INSTALL}/lib/cmake/paraview-${PVLIBVERSION}/VTKTargets.cmake && \ -sed -i "s%[^;\"]\+/hdf5-[0-9\.]\+/lib/\([^;]\+\)%${HDF5_ROOT_DIR}/lib/\1%g" ${PRODUCT_INSTALL}/lib/cmake/paraview-${PVLIBVERSION}/VTKTargets.cmake && \ -sed -i "s%[^;\"]\+/gl2ps-[0-9\.]\+/lib/\([^;]\+\)%${GL2PS_ROOT_DIR}/lib/\1%g" ${PRODUCT_INSTALL}/lib/cmake/paraview-${PVLIBVERSION}/VTKTargets.cmake && \ - -if [ $? -ne 0 ] -then - echo "ERROR on cp" - exit 4 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/PyQt.sh b/data/compil_scripts/PyQt.sh deleted file mode 100755 index 83f70fe..0000000 --- a/data/compil_scripts/PyQt.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "PyQt" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -python_name=python$PYTHON_VERSION - -echo -echo "*** configure" -python $SOURCE_DIR/configure.py --confirm-license --no-designer-plugin \ - --bindir=${PRODUCT_INSTALL}/bin \ - --destdir=${PRODUCT_INSTALL}/lib/$python_name/site-packages \ - --sipdir=${PRODUCT_INSTALL}/sip \ - --plugin-destdir=${PRODUCT_INSTALL}/qt 2>&1 -if [ $? -ne 0 ] -then - echo "ERROR on configure" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - - -echo -echo "########## END" - diff --git a/data/compil_scripts/Pygments.sh b/data/compil_scripts/Pygments.sh deleted file mode 100755 index acea62e..0000000 --- a/data/compil_scripts/Pygments.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "Pygments" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -cp -r $SOURCE_DIR/* . - -mkdir -p ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages -PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:${PYTHONPATH} - -# unset PYTHONDONTWRITEBYTECODE set by default on MD10 -PYTHONDONTWRITEBYTECODE= - -echo -echo "*** setup.py" -python setup.py install --prefix=${PRODUCT_INSTALL} --install-lib ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages -if [ $? -ne 0 ] -then - echo "ERROR on setup" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/Python.sh b/data/compil_scripts/Python.sh deleted file mode 100755 index 1d4ed5c..0000000 --- a/data/compil_scripts/Python.sh +++ /dev/null @@ -1,111 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "Python" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -# WARNING $PYTHOSTARTUP can be problematic -> unset. -# If an error occurs during make install then the environement is "messy" - -# check for readline library -# if NO_CHECK_READLINE is not set and readline is not found the script will exit -if [[ "x$NO_CHECK_READLINE" == "x" ]] -then - echo - echo "*** check for readline library" - python -c "import readline" &> /dev/null - if [ $? -ne 0 ] - then - echo "ERROR readline library is not installed" - echo "set environement variable NO_CHECK_READLINE to skip checking for readline library" - exit 5 - else - echo "readline library found" - fi -fi - -echo -echo "*** configure" -if [[ $DIST_NAME == "UB" ]] -then - export LDFLAGS="-L/usr/lib/x86_64-linux-gnu/" - echo "set LDFLAGS=$LDFLAGS" -fi - -################################## Hack the bug with on OpenSuse -if [[ $DIST_NAME == "OS" ]] -then - echo - echo "*** fix bug OpenSuse" - VAR_PWD=`pwd` - mkdir -p ${PRODUCT_INSTALL} - echo - echo "*** create missing link ${PRODUCT_INSTALL}/lib ${PRODUCT_INSTALL}/lib64" - cd ${PRODUCT_INSTALL} - mkdir lib - ln -s lib lib64 - cd $VAR_PWD -fi - -$SOURCE_DIR/configure --prefix=$PRODUCT_INSTALL --enable-shared --with-threads --without-pymalloc --enable-unicode=ucs4 -if [ $? -ne 0 ] -then - echo "ERROR on configure" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -######### link for salome - -PYTHON_VERSION=`${PRODUCT_INSTALL}/bin/python -c "import sys; print sys.version[:3]"` -if [ $? -ne 0 ] -then - PYTHON_VERSION="${VERSION:0:3}" -fi - -cd ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/config - -if [ ! -e libpython${PYTHON_VERSION}.so ] -then - echo - echo "*** create missing link" - ln -sf ../../libpython${PYTHON_VERSION}.so . - if [ $? -ne 0 ] - then - echo "ERROR when creating missing link" - # no error here - fi -fi - -# changement des ent�tes -#cd $PRODUCT_INSTALL/bin -#for sc in idle pydoc smtpd.py ; do -# if [ -e $sc ] ; then -# sed -e "s%#\!.*python%#\!/usr/bin/env python%" "$sc" > _"$sc" -# mv -f _"$sc" "$sc" -# chmod a+x "$sc" -# fi -#done - -echo -echo "########## END" - diff --git a/data/compil_scripts/Sphinx.sh b/data/compil_scripts/Sphinx.sh deleted file mode 100755 index 87e1f6e..0000000 --- a/data/compil_scripts/Sphinx.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "Sphinx" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -cp -r $SOURCE_DIR/* . - -mkdir -p ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages -PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:${PYTHONPATH} - -# unset PYTHONDONTWRITEBYTECODE set by default on MD10 -PYTHONDONTWRITEBYTECODE= - -echo -echo "*** setup.py" -python setup.py install --prefix=${PRODUCT_INSTALL} --install-lib ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages -if [ $? -ne 0 ] -then - echo "ERROR on setup" - exit 3 -fi - -echo -echo "*** fix binaires" -PYTHON_BIN="${PYTHONHOME}/bin/python" -echo "Replace '#!${PYTHON_BIN}' with '#!/usr/bin/env python'" -sed -i "s|#!${PYTHON_BIN}|#!/usr/bin/env python|g" ${PRODUCT_INSTALL}/bin/* - -echo -echo "########## END" - diff --git a/data/compil_scripts/boost.sh b/data/compil_scripts/boost.sh deleted file mode 100755 index 56d17d7..0000000 --- a/data/compil_scripts/boost.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "BOOST" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -cd $SOURCE_DIR - -if [ -n "$MPI_ROOT" ] -then - cp tools/build/v2/user-config.jam . - echo "using mpi ;" >> user-config.jam -fi - -echo -echo "*** bootstrap.sh" -./bootstrap.sh --prefix=$PRODUCT_INSTALL -if [ $? -ne 0 ] -then - echo "ERROR on bootstrap" - exit 1 -fi - -echo "*** bjam install" -if [ -n "$MPI_ROOT" ] -then - ./bjam --user-config=user-config.jam --layout=tagged install -else - ./bjam install -fi -if [ $? -ne 0 ] -then - echo "ERROR on bjam install" - exit 3 -fi - -echo -echo "########## END" diff --git a/data/compil_scripts/cgns.sh b/data/compil_scripts/cgns.sh deleted file mode 100755 index d4968af..0000000 --- a/data/compil_scripts/cgns.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "cgnslib" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -# compilation -echo "cgnslib compilation" - -CMAKE_OPTIONS="" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_INSTALL}" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_BUILD_TYPE:STRING=Release" -if [ -n "$MPI_ROOT" ] -then - CMAKE_OPTIONS=$CMAKE_OPTIONS" -DHDF5_NEEDS_MPI:BOOL=ON" -fi - -echo -echo "*** cmake" -cmake $CMAKE_OPTIONS $SOURCE_DIR -if [ $? -ne 0 ] -then - echo "ERROR on cmake" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/cmake.sh b/data/compil_scripts/cmake.sh deleted file mode 100755 index 625be57..0000000 --- a/data/compil_scripts/cmake.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "cmake" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -echo -echo "*** bootstrap" -$SOURCE_DIR/bootstrap --prefix=${PRODUCT_INSTALL} -if [ $? -ne 0 ] -then - echo "ERROR on bootstrap" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/cppunit.sh b/data/compil_scripts/cppunit.sh deleted file mode 100755 index dd59454..0000000 --- a/data/compil_scripts/cppunit.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "cppunit" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -# compilation -echo "cppunit compilation" - -echo -echo "*** configure" -$SOURCE_DIR/configure --prefix=$PRODUCT_INSTALL --enable-static LDFLAGS="-ldl" -if [ $? -ne 0 ] -then - echo "ERROR on configure" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/cython.sh b/data/compil_scripts/cython.sh deleted file mode 100755 index 33757af..0000000 --- a/data/compil_scripts/cython.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "cython" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -echo `pwd` -echo "*** copy sources in BUILD directory" -cp -r $SOURCE_DIR/* . - -echo -echo "*** setup.py BUILD" -python setup.py build -if [ $? -ne 0 ] -then - echo "ERROR on build" - exit 2 -fi - -mkdir -p $PRODUCT_INSTALL -echo -echo "*** install" -python setup.py install --prefix=$PRODUCT_INSTALL -if [ $? -ne 0 ] -then - echo "ERROR on install" - exit 3 -fi - -echo -echo "########## END" diff --git a/data/compil_scripts/dateutil.sh b/data/compil_scripts/dateutil.sh deleted file mode 100755 index 8a4b661..0000000 --- a/data/compil_scripts/dateutil.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "python-dateutil" $VERSION -echo "##########################################################################" - -rm -rf $PRODUCT_INSTALL -mkdir -p $PRODUCT_INSTALL -echo - -cp -r $SOURCE_DIR/* . - -# Making a directory that will be used in install -BUILD_DIR=`pwd` -cd $PRODUCT_INSTALL -mkdir -p lib/python2.7/site-packages -cd $BUILD_DIR -# Hack PYTHONPATH in order to make 'setup.py install' believe that PRODUCT_INSTALL is in PYTHONPATH -PYTHONPATH_SAVE=$PYTHONPATH -export PYTHONPATH=${PRODUCT_INSTALL}/lib/python2.7/site-packages:$PYTHONPATH - -echo "*** setup.py BUILD" -python setup.py build - - -echo "*** setup.py INSATALL" -python setup.py install --prefix=${PRODUCT_INSTALL} - -if [ $? -ne 0 ] -then - export PYTHONPATH=$PYTHONPATH_SAVE - echo "ERROR on setup" - exit 3 -fi - -export PYTHONPATH=$PYTHONPATH_SAVE - -echo -echo "########## END" - diff --git a/data/compil_scripts/distribute.sh b/data/compil_scripts/distribute.sh deleted file mode 100755 index bbb6d15..0000000 --- a/data/compil_scripts/distribute.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "distribute" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL -mkdir -p $PRODUCT_INSTALL -echo - -cp -r $SOURCE_DIR/* . - -# Making a directory that will be used in install -BUILD_DIR=`pwd` -cd $PRODUCT_INSTALL -mkdir -p lib/python2.7/site-packages -cd $BUILD_DIR -# Hack PYTHONPATH in order to make 'setup.py install' believe that PRODUCT_INSTALL is in PYTHONPATH -PYTHONPATH_SAVE=$PYTHONPATH -export PYTHONPATH=${PRODUCT_INSTALL}/lib/python2.7/site-packages:$PYTHONPATH - -echo "*** setup.py BUILD" -python setup.py build - - -echo "*** setup.py INSATALL" -python setup.py install --prefix=${PRODUCT_INSTALL} - -if [ $? -ne 0 ] -then - export PYTHONPATH=$PYTHONPATH_SAVE - echo "ERROR on setup" - exit 3 -fi - -export PYTHONPATH=$PYTHONPATH_SAVE - -echo -echo "########## END" - diff --git a/data/compil_scripts/docutils.sh b/data/compil_scripts/docutils.sh deleted file mode 100755 index 6cf3660..0000000 --- a/data/compil_scripts/docutils.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "docutil" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -cp -r $SOURCE_DIR/* . - -mkdir -p ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages -PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:${PYTHONPATH} - -echo -echo "setup.py" -python setup.py install --prefix ${PRODUCT_INSTALL} -if [ $? -ne 0 ] -then - echo "ERROR on setup" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/doxygen.sh b/data/compil_scripts/doxygen.sh deleted file mode 100755 index d0613df..0000000 --- a/data/compil_scripts/doxygen.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "doxygen" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -cp -r $SOURCE_DIR/* . - -echo "doxygen compilation" - -echo -echo "*** configure" -./configure --prefix $PRODUCT_INSTALL -if [ $? -ne 0 ] -then - echo "ERROR on configure" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/fftw.sh b/data/compil_scripts/fftw.sh deleted file mode 100755 index 265d480..0000000 --- a/data/compil_scripts/fftw.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "fftw" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -cp -r $SOURCE_DIR/* . - -echo -echo "*** configure" -./configure --prefix=$PRODUCT_INSTALL --enable-shared --disable-static -if [ $? -ne 0 ] -then - echo "ERROR on fftw" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "########## END" diff --git a/data/compil_scripts/freeimage-3.16.0.sh b/data/compil_scripts/freeimage-3.16.0.sh deleted file mode 100755 index c9b866d..0000000 --- a/data/compil_scripts/freeimage-3.16.0.sh +++ /dev/null @@ -1,83 +0,0 @@ -#!/bin/bash - -echo "###############################################" -echo "freeimage" $VERSION -echo "###############################################" - -cp -r $SOURCE_DIR/* . - -# hack pour CO5.5 -if [[ $DIST_NAME == "CO" && $DIST_VERSION == "5.5" ]] -then - export CC=/usr/bin/gcc44 -fi - - -rm -Rf $PRODUCT_INSTALL -echo -n ".. Patching freeimage sources: fix build procedure..." && \ - sed -i "s%DESTDIR ?= /%DESTDIR ?= /usr%g;s%INCDIR ?= \$(DESTDIR)/usr/include%INCDIR ?= \$(DESTDIR)/include%g;s%INSTALLDIR ?= \$(DESTDIR)/usr/lib%INSTALLDIR ?= \$(DESTDIR)/lib%g;s%-o root -g root %%g" Makefile.gnu >& /dev/null && \ - sed -i "s%DESTDIR ?= /%DESTDIR ?= /usr%g;s%INCDIR ?= \$(DESTDIR)/usr/include%INCDIR ?= \$(DESTDIR)/include%g;s%INSTALLDIR ?= \$(DESTDIR)/usr/lib%INSTALLDIR ?= \$(DESTDIR)/lib%g;s%-o root -g root %%g" Makefile.fip >& /dev/null - if [ "$?" != "0" ] ; then - echo - echo "Error: problem patching freeimage sources" - echo - return 1 - fi - echo "OK" - - echo -n ".. Patching freeimage sources: gcc 4.7 compatibility..." && \ - sed -i 's%\(#include "OpenEXRConfig.h"\)%\1\n#include %g' Source/OpenEXR/IlmImf/ImfAutoArray.h - if [ "$?" != "0" ] ; then - echo - echo "Error: problem patching freeimage sources" - echo - fi - echo "OK" - -echo -echo "*** FreeImage: make" $MAKE_OPTIONS -make -f Makefile.gnu -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** FreeImage: make install" -make -f Makefile.gnu DESTDIR=$PRODUCT_INSTALL install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "*** FreeImage: make clean" -make -f Makefile.gnu clean - -echo -echo "*** FreeImagePlus: make" $MAKE_OPTIONS -make -f Makefile.fip -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** FreeImagePlus: make install" -make -f Makefile.fip DESTDIR=$PRODUCT_INSTALL install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "*** FreeImagePlus: make clean" -make -f Makefile.fip clean - -echo -echo "########## END" - diff --git a/data/compil_scripts/freetype.sh b/data/compil_scripts/freetype.sh deleted file mode 100755 index a2e2f75..0000000 --- a/data/compil_scripts/freetype.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash - -echo "###############################################" -echo "freetype" $VERSION -echo "###############################################" - -rm -Rf $PRODUCT_INSTALL - -echo -echo "*** configure" -if [[ $BITS == "64" ]] -then - $SOURCE_DIR/configure CFLAGS="-fPIC -m64" --prefix=$PRODUCT_INSTALL -else - $SOURCE_DIR/configure --prefix=$PRODUCT_INSTALL -fi -if [ $? -ne 0 ] -then - echo "ERROR on configure" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -cp $PRODUCT_INSTALL/include/ft2build.h $PRODUCT_INSTALL/include/freetype2 #Fix for ParaView detection of ft2build.h - -echo -echo "########## END" - diff --git a/data/compil_scripts/graphviz-2.38.0.sh b/data/compil_scripts/graphviz-2.38.0.sh deleted file mode 100755 index 9ba5e07..0000000 --- a/data/compil_scripts/graphviz-2.38.0.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "graphviz" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -cp -r $SOURCE_DIR/* . - -if [ -e ${TCLHOME}/lib64/tcl${TCL_SHORT_VERSION}/graphviz ] -then - rm -rf ${TCLHOME}/lib64/tcl${TCL_SHORT_VERSION}/graphviz -fi - -echo "graphviz compilation" -# tcl natif -if [ ${#TCLHOME} -eq 0 ] -then - TCLHOME="/usr" -fi - -echo -echo "*** ./configure --prefix=${PRODUCT_INSTALL} --with-tcl=${TCLHOME}/lib --with-expat=no --with-qt=no --with-cgraph=no --enable-perl=no" -./configure --prefix=${PRODUCT_INSTALL} --with-tcl=${TCLHOME}/lib --with-expat=no --with-qt=no --with-cgraph=no --enable-perl=no - -if [ $? -ne 0 ] -then - echo "ERROR on configure" - exit 1 -fi - -echo -echo "*** make" ${MAKE_OPTIONS} -make ${MAKE_OPTIONS} -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/hdf5CMake.sh b/data/compil_scripts/hdf5CMake.sh deleted file mode 100755 index 6fd6086..0000000 --- a/data/compil_scripts/hdf5CMake.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "hdf5" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -CMAKE_OPTIONS="" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_INSTALL}" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_BUILD_TYPE:STRING=Release" -#CMAKE_OPTIONS=$CMAKE_OPTIONS" -DHDF5_USE_16_API_DEFAULT:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DBUILD_SHARED_LIBS:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DHDF5_ALLOW_EXTERNAL_SUPPORT:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DHDF5_BUILD_HL_LIB:BOOL=ON" - - -if [ -n "$MPI_ROOT" ] -then - CMAKE_OPTIONS=$CMAKE_OPTIONS" -DHDF5_ENABLE_PARALLEL:BOOL=ON" - CMAKE_OPTIONS=$CMAKE_OPTIONS" -DHDF5_BUILD_CPP_LIB:BOOL=OFF" -else - CMAKE_OPTIONS=$CMAKE_OPTIONS" -DHDF5_ENABLE_PARALLEL:BOOL=OFF" - CMAKE_OPTIONS=$CMAKE_OPTIONS" -DHDF5_BUILD_CPP_LIB:BOOL=ON" -fi - - -echo -echo "*** cmake" $CMAKE_OPTIONS -cmake $CMAKE_OPTIONS $SOURCE_DIR -if [ $? -ne 0 ] -then - echo "ERROR on CMake" - exit 1 -fi - -if [ -n "$MPI_ROOT" ] -then - sed -e 's/;//' -i src/CMakeFiles/H5make_libsettings.dir/link.txt - sed -e 's/;//' -i src/CMakeFiles/H5detect.dir/link.txt -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/lapack.sh b/data/compil_scripts/lapack.sh deleted file mode 100755 index 0cc2dd6..0000000 --- a/data/compil_scripts/lapack.sh +++ /dev/null @@ -1,82 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "lapack" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -#echo "copy file" -cp make.inc.example make.inc - -mkdir -p $PRODUCT_INSTALL -cp -rp $SOURCE_DIR/* $PRODUCT_INSTALL/ - - -CMAKE_OPTIONS="$SOURCE_DIR" -CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_INSTALL_PREFIX=$PRODUCT_INSTALL" -CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_BUILD_TYPE=Release" -CMAKE_OPTIONS="${CMAKE_OPTIONS} -DBUILD_SHARED_LIBS:BOOL=ON" -CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_CXX_FLAGS=-fPIC" -CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_C_FLAGS=-fPIC" - -echo -echo "*** cmake ${CMAKE_OPTIONS}" -cmake ${CMAKE_OPTIONS} -if [ $? -ne 0 ] -then - echo "ERROR on cmake" - exit 1 -fi - -echo -echo "*** make" -make -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" - -make install - -#cp lib/libblas.so $PRODUCT_INSTALL/lib/ -#cp lib/liblapack.so $PRODUCT_INSTALL/lib/ -#cp lib/libtmglib.so $PRODUCT_INSTALL/lib/ - -#ln -s $PRODUCT_INSTALL/lib/blas_LINUX.so $PRODUCT_INSTALL/lib/libblas.so -#ln -s $PRODUCT_INSTALL/lib/lapack_LINUX.so $PRODUCT_INSTALL/lib/liblapack.so - -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - - -#echo -#echo "*** make" -#make blaslib -#if [ $? -ne 0 ] -#then -# echo "ERROR on make" -# exit 2 -#fi - -#make lapacklib -#if [ $? -ne 0 ] -#then -# echo "ERROR on make" -# exit 2 -#fi -##ln -s blas_LINUX.a libblas.a -##ln -s lapack_LINUX.a liblapack.a - -#ln -s librefblas.a libblas.a - -echo -echo "########## END" - diff --git a/data/compil_scripts/libxml2_2_9_2.sh b/data/compil_scripts/libxml2_2_9_2.sh deleted file mode 100755 index 913abcd..0000000 --- a/data/compil_scripts/libxml2_2_9_2.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "libxml2" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -export LDFLAGS=-L$PYTHON_ROOT_DIR/lib - -echo -echo "*** autogen" -$SOURCE_DIR/autogen.sh - -echo -echo "*** configure" -$SOURCE_DIR/configure --with-python=${PYTHON_ROOT_DIR} --prefix=$PRODUCT_INSTALL -if [ $? -ne 0 ] -then - echo "ERROR on configure" - exit 1 -fi - -if [[ $DIST_NAME == "MG" ]] -then - export PYTHON_LIBS="-L${PYTHON_ROOT_DIR}/lib" -fi - -echo -echo "*** make" $MAKE_OPTIONS -make -d $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "*** install python" -PWD = `pwd` -cd python -CFLAGS=-I${PWD}/include ${PYTHON_ROOT_DIR}/bin/python setup.py build -CFLAGS=-I${PWD}/include ${PYTHON_ROOT_DIR}/bin/python setup.py install - -echo -echo "########## END" - diff --git a/data/compil_scripts/markupsafe.sh b/data/compil_scripts/markupsafe.sh deleted file mode 100755 index fe8d65d..0000000 --- a/data/compil_scripts/markupsafe.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "markupsafe" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -cp -r $SOURCE_DIR/* . - -echo -echo "*** setup.py BUILD" -python setup.py build -if [ $? -ne 0 ] -then - echo "ERROR on build" - exit 2 -fi - -dir_lib=$PRODUCT_INSTALL'/lib/python'$PYTHON_VERSION'/site-packages' - -# HACK -PYTHONPATH=$PYTHONPATH:$dir_lib - -mkdir -p $PRODUCT_INSTALL -mkdir -p $dir_lib - -echo -echo "*** install" -python setup.py install --prefix=$PRODUCT_INSTALL -if [ $? -ne 0 ] -then - echo "ERROR on install" - exit 3 -fi - -echo -echo "########## END" diff --git a/data/compil_scripts/matplotlib.sh b/data/compil_scripts/matplotlib.sh deleted file mode 100755 index 2e8be6b..0000000 --- a/data/compil_scripts/matplotlib.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "matplotlib" $VERSION -echo "##########################################################################" - -rm -rf $PRODUCT_INSTALL -mkdir -p $PRODUCT_INSTALL -echo -echo "*** setup.py" - -cp -r $SOURCE_DIR/* . - -# Making a directory that will be used in install -BUILD_DIR=`pwd` -cd $PRODUCT_INSTALL -mkdir -p lib/python2.7/site-packages -cd $BUILD_DIR -# Hack PYTHONPATH in order to make 'setup.py install' believe that PRODUCT_INSTALL is in PYTHONPATH -PYTHONPATH_SAVE=$PYTHONPATH -export PYTHONPATH=${PRODUCT_INSTALL}/lib/python2.7/site-packages:$PYTHONPATH - - -echo "*** setup.py BUILD" - -python setup.py build - -echo "*** setup.py INSTALL" - -python setup.py install --prefix=${PRODUCT_INSTALL} - -if [ $? -ne 0 ] -then - export PYTHONPATH=$PYTHONPATH_SAVE - echo "ERROR on setup" - exit 3 -fi -export PYTHONPATH=$PYTHONPATH_SAVE - -echo -echo "########## END" - diff --git a/data/compil_scripts/medCMake.sh b/data/compil_scripts/medCMake.sh deleted file mode 100755 index 6010b52..0000000 --- a/data/compil_scripts/medCMake.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "med" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -CMAKE_OPTIONS="" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_INSTALL}" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_BUILD_TYPE:STRING=Release" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DMEDFILE_BUILD_STATIC_LIBS:BOOL=OFF" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DMEDFILE_BUILD_SHARED_LIBS:BOOL=ON" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DHDF5_ROOT_DIR:STRING=${HDF5_ROOT_DIR}" - -if [ -n "$MPI_ROOT" ] -then - CMAKE_OPTIONS=$CMAKE_OPTIONS" -DMEDFILE_USE_MPI:BOOL=ON" -else - CMAKE_OPTIONS=$CMAKE_OPTIONS" -DMEDFILE_USE_MPI:BOOL=OFF" -fi - -mkdir BUILD -cd BUILD - -cmake $CMAKE_OPTIONS $SOURCE_DIR - -if [ $? -ne 0 ] -then - echo "ERROR on CMake" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/metis.sh b/data/compil_scripts/metis.sh deleted file mode 100755 index 31197c4..0000000 --- a/data/compil_scripts/metis.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "Metis" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL -mkdir -p $PRODUCT_INSTALL - -cp -r $SOURCE_DIR/* . - -echo -echo "*** apply sed for 64bits platforms" -sed -e 's|COPTIONS =|& -fPIC|g' Makefile.in > Makefile.in_new -cp Makefile.in_new Makefile.in - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** copy build to install" -cp -ar * ${PRODUCT_INSTALL} -if [ $? -ne 0 ] -then - echo "ERROR on install" - exit 3 -fi - -echo -echo "*** Modification of access rights" -chmod -R g+rwX,o+rX ${PRODUCT_INSTALL} - -echo -echo "########## END" - diff --git a/data/compil_scripts/netgen.sh b/data/compil_scripts/netgen.sh deleted file mode 100755 index f78617c..0000000 --- a/data/compil_scripts/netgen.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "netgen" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -cp -r $SOURCE_DIR/* . - -echo -echo "*** configure" -BFLAG="-m64" -OLEVEL="-O2" -echo ./configure --prefix=${PRODUCT_INSTALL} \ - --with-occ=${CASROOT} \ - --with-tcl=${TCLHOME}/lib \ - --with-tk=${TCLHOME}/lib \ - --with-togl=${TCLHOME}/lib \ - LDFLAGS="-L${TCLHOME}/lib" \ - CPPFLAGS="-I${TCLHOME}/include" \ - CXXFLAGS="${OLEVEL} ${BFLAG}" -./configure --prefix=${PRODUCT_INSTALL} \ - --with-occ=${CASROOT} \ - --with-tcl=${TCLHOME}/lib \ - --with-tk=${TCLHOME}/lib \ - --with-togl=${TCLHOME} \ - LDFLAGS="-L${TCLHOME}/lib" \ - CPPFLAGS="-I${TCLHOME}/include" \ - CXXFLAGS="${OLEVEL} ${BFLAG}" -if [ $? -ne 0 ] -then - echo "error on configure" - exit 1 -fi - -echo -echo "*** compile" -make -if [ $? -ne 0 ] -then - echo "error on make" - exit 2 -fi - -echo -echo "*** install" -make install -if [ $? -ne 0 ] -then - echo "error on make install" - exit 3 -fi - -echo -echo "*** copy headers" -for directory in general gprim linalg meshing ; do - cp -vf ${PRODUCT_BUILD}/libsrc/${directory}/*.hpp ${PRODUCT_INSTALL}/include -done -cp -vf ${PRODUCT_BUILD}/libsrc/include/mystdlib.h ${PRODUCT_BUILD}/libsrc/include/mydefs.hpp ${PRODUCT_INSTALL}/include -cp -vf ${PRODUCT_BUILD}/libsrc/occ/occ*.hpp ${PRODUCT_INSTALL}/include - - -echo -echo "########## END" diff --git a/data/compil_scripts/numpy.sh b/data/compil_scripts/numpy.sh deleted file mode 100755 index 3579c71..0000000 --- a/data/compil_scripts/numpy.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "numpy" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL -mkdir -p $PRODUCT_INSTALL - -echo -echo "*** setup.py" -## editer customize.py Pour LApack : using Atlas, Pour Blas : Using gsl -python $SOURCE_DIR/setup.py build -python $SOURCE_DIR/setup.py install --prefix=${PRODUCT_INSTALL} -if [ $? -ne 0 ] -then - echo "ERROR on setup" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/omniORB.sh b/data/compil_scripts/omniORB.sh deleted file mode 100755 index 4ad586c..0000000 --- a/data/compil_scripts/omniORB.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "omniORB" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -PYTHON_HOME=$PYTHONHOME - -echo -echo "*** configure" -$SOURCE_DIR/configure --prefix=$PRODUCT_INSTALL --disable-ipv6 -if [ $? -ne 0 ] -then - echo "ERROR on configure" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - - -# fix headers -echo -echo "*** fix headers" -cd $PRODUCT_INSTALL/bin -sed -e "s%#\!.*python%#\!/usr/bin/env python%" omniidl > _omniidl -mv -f _omniidl omniidl -chmod a+x omniidl -sed -e "s%#\!.*python%#\!/usr/bin/env python%" omniidlrun.py > _omniidlrun.py -mv -f _omniidlrun.py omniidlrun.py -chmod a+x omniidlrun.py - -echo -echo "########## END" - diff --git a/data/compil_scripts/omniORBpy.sh b/data/compil_scripts/omniORBpy.sh deleted file mode 100755 index be12bdc..0000000 --- a/data/compil_scripts/omniORBpy.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "omniORBpy" $VERSION -echo "##########################################################################" - -echo -echo "*** configure" -$SOURCE_DIR/configure --prefix=${OMNIORB_ROOT_DIR} -if [ $? -ne 0 ] -then - echo "ERROR on configure" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -mkdir -p $PRODUCT_INSTALL -echo "omniORBpy is installed into omni dir ${OMNIORB_ROOT_DIR}" > $PRODUCT_INSTALL/README - -echo -echo "########## END" - diff --git a/data/compil_scripts/opencv.sh b/data/compil_scripts/opencv.sh deleted file mode 100755 index 6fb1790..0000000 --- a/data/compil_scripts/opencv.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "opencv" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -CMAKE_OPTIONS="" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_INSTALL}" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_BUILD_TYPE:STRING=Release" -CMAKE_OPTIONS=$CMAKE_OPTIONS" -DWITH_CUDA:BOOL=OFF" - -mkdir BUILD -cd BUILD - -# hack pour CO5.5 -if [[ $DIST_NAME == "CO" && $DIST_VERSION == "5.5" ]] -then - env CC=/usr/bin/gcc44 CXX=/usr/bin/g++44 cmake $CMAKE_OPTIONS $SOURCE_DIR -else - cmake $CMAKE_OPTIONS $SOURCE_DIR -fi - -if [ $? -ne 0 ] -then - echo "ERROR on CMake" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/pyparsing.sh b/data/compil_scripts/pyparsing.sh deleted file mode 100755 index 6332f15..0000000 --- a/data/compil_scripts/pyparsing.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "pyparsing" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL -mkdir -p $PRODUCT_INSTALL -echo - -cp -r $SOURCE_DIR/* . - -# Making a directory that will be used in install -BUILD_DIR=`pwd` -cd $PRODUCT_INSTALL -mkdir -p lib/python2.7/site-packages -cd $BUILD_DIR -# Hack PYTHONPATH in order to make 'setup.py install' believe that PRODUCT_INSTALL is in PYTHONPATH -PYTHONPATH_SAVE=$PYTHONPATH -export PYTHONPATH=${PRODUCT_INSTALL}/lib/python2.7/site-packages:$PYTHONPATH - -echo "*** setup.py BUILD" -python setup.py build - - -echo "*** setup.py INSATALL" -python setup.py install --prefix=${PRODUCT_INSTALL} - -if [ $? -ne 0 ] -then - export PYTHONPATH=$PYTHONPATH_SAVE - echo "ERROR on setup" - exit 3 -fi - -export PYTHONPATH=$PYTHONPATH_SAVE - -echo -echo "########## END" - diff --git a/data/compil_scripts/pyreadline.sh b/data/compil_scripts/pyreadline.sh deleted file mode 100755 index d19480e..0000000 --- a/data/compil_scripts/pyreadline.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "pyreadline" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL -mkdir -p $PRODUCT_INSTALL -echo "pyreadline is a Windows porting of readline, a native module of Unix python" > $PRODUCT_INSTALL/README - -echo -echo "########## END" diff --git a/data/compil_scripts/pytz.sh b/data/compil_scripts/pytz.sh deleted file mode 100755 index 98337cc..0000000 --- a/data/compil_scripts/pytz.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "Pytz" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL -mkdir -p $PRODUCT_INSTALL -echo - -cp -r $SOURCE_DIR/* . - -# Making a directory that will be used in install -BUILD_DIR=`pwd` -cd $PRODUCT_INSTALL -mkdir -p lib/python2.7/site-packages -cd $BUILD_DIR -# Hack PYTHONPATH in order to make 'setup.py install' believe that PRODUCT_INSTALL is in PYTHONPATH -PYTHONPATH_SAVE=$PYTHONPATH -export PYTHONPATH=${PRODUCT_INSTALL}/lib/python2.7/site-packages:$PYTHONPATH - -echo "*** setup.py BUILD" -python setup.py build - - -echo "*** setup.py INSATALL" -python setup.py install --prefix=${PRODUCT_INSTALL} - -if [ $? -ne 0 ] -then - export PYTHONPATH=$PYTHONPATH_SAVE - echo "ERROR on setup" - exit 3 -fi - -export PYTHONPATH=$PYTHONPATH_SAVE - -echo -echo "########## END" diff --git a/data/compil_scripts/qt.sh b/data/compil_scripts/qt.sh deleted file mode 100755 index 74b02d0..0000000 --- a/data/compil_scripts/qt.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "Qt" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -cp -r $SOURCE_DIR/* . - -echo -echo "*** configure" -CXXFLAGS="-fpermissive" ./configure -prefix $PRODUCT_INSTALL -release -opensource -no-rpath \ - -verbose -no-separate-debug-info -confirm-license -qt-libpng -no-sql-cli -if [ $? -ne 0 ] -then - echo "ERROR on configure" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo "*** create link for lib64" -cd $PRODUCT_INSTALL -ln -s lib lib64 - - -echo "*** correction of a problem with webcore and jscore libraries" -cd ${PRODUCT_INSTALL}/lib && sed -i "s% -L../../WebCore/release%%g;s% -L../../JavaScriptCore/release%%g;s% -lwebcore%%g;s% -ljscore%%g" libQtWebKit.la - -echo "*** Adding qt.conf file in order to be able to compile using the moved Qt installation" -cd ${PRODUCT_INSTALL}/bin && echo -e "[Paths]\nPrefix=..\nBinaries=bin" > qt.conf - -echo -echo "########## END" - diff --git a/data/compil_scripts/qwt-6.1.0.sh b/data/compil_scripts/qwt-6.1.0.sh deleted file mode 100755 index 8cbf76e..0000000 --- a/data/compil_scripts/qwt-6.1.0.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "qwt" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -export TMAKEPATH=${QTDIR}/bin -export PATH=${TMAKEPATH}:${PATH} - -echo -echo "*** copy source" -mkdir -p ${PRODUCT_INSTALL} -cp -r $SOURCE_DIR/* . - -echo -echo "*** prepare qmake" -sed -i "s|\(QWT_INSTALL_PREFIX[[:space:]]*\)=\([[:space:]]*\)\(.*\)|\1=\2${PRODUCT_INSTALL}|g" qwtconfig.pri -sed -i "s|#\(CONFIG[[:space:]]*+=[[:space:]]*QwtSVGItem\)|\1|g" qwtconfig.pri - -sed -i "s|\(target\.path[[:space:]]*\)=\([[:space:]]*\).*|\1=\2\$\$QWT_INSTALL_PREFIX/plugins/designer|g" designer/designer.pro - -echo -echo "** qmake" -qmake -if [ $? -ne 0 ] -then - echo "ERROR on qmake" - exit 1 -fi - -echo -echo "*** make" -make -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/scipy.sh b/data/compil_scripts/scipy.sh deleted file mode 100755 index 0c43800..0000000 --- a/data/compil_scripts/scipy.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "scipy" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -cp -r $SOURCE_DIR/* . - -echo -echo "*** build" -python setup.py build -if [ $? -ne 0 ] -then - echo "ERROR on build" - exit 2 -fi - -mkdir -p $PRODUCT_INSTALL -echo -echo "*** install" -python setup.py install --prefix=${PRODUCT_INSTALL} -if [ $? -ne 0 ] -then - echo "ERROR on install" - exit 3 -fi - -#mkdir -p $PRODUCT_INSTALL -#echo "scipy is installed into python dir $PYTHON_ROOT_DIR" > $PRODUCT_INSTALL/README - -echo -echo "########## END" diff --git a/data/compil_scripts/scotch-5.1.12.sh b/data/compil_scripts/scotch-5.1.12.sh deleted file mode 100755 index 41276d9..0000000 --- a/data/compil_scripts/scotch-5.1.12.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "Scotch" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -mkdir -p $PRODUCT_INSTALL - -cp -r $SOURCE_DIR/* . - -echo -echo "*** copy BUILD to INSTALL : cp -ar ${PRODUCT_BUILD} ${PRODUCT_INSTALL}" -cp -ar * ${PRODUCT_INSTALL} -if [ $? -ne 0 ] -then - echo "ERROR on cp -ar ${SOURCE_DIR} ${PRODUCT_INSTALL}" - exit 1 -fi -echo "INSTALL :: ${PRODUCT_INSTALL}" - -cd ${PRODUCT_INSTALL}/src - -cp Make.inc/Makefile.inc.x86-64_pc_linux2 ./Makefile.inc.ori - -# add pthread for gcc > 4.4 -sed -e "s%LDFLAGS\([[:space:]]*\)=\([[:space:]]*\)\(.*\)%LDFLAGS\1=\2 \3 -lpthread%g" Makefile.inc.ori > Makefile.inc - -# add -fPIC -sed -e 's|CFLAGS[\t ]*=|& -fPIC|g' Makefile.inc > Makefile.in_new -cp Makefile.in_new Makefile.inc - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/setuptools.sh b/data/compil_scripts/setuptools.sh deleted file mode 100755 index f0c1a62..0000000 --- a/data/compil_scripts/setuptools.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "setuptools" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -mkdir -p ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages -export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:${PYTHONPATH} - -cp -r $SOURCE_DIR/* . - -# unset PYTHONDONTWRITEBYTECODE set by default on MD10 -PYTHONDONTWRITEBYTECODE= - -echo -echo "*** setup.py" -python setup.py install --prefix=${PRODUCT_INSTALL} --install-lib ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages -if [ $? -ne 0 ] -then - echo "ERROR on setup" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/sip.sh b/data/compil_scripts/sip.sh deleted file mode 100755 index f5105e7..0000000 --- a/data/compil_scripts/sip.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "sip" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -cp -r $SOURCE_DIR/* . - -python_name=python$PYTHON_VERSION - -echo -echo "*** configure" -if [[ $BITS == "64" ]] -then - python ./configure.py -b ${PRODUCT_INSTALL}/bin \ - -d ${PRODUCT_INSTALL}/lib/${python_name}/site-packages \ - -e ${PRODUCT_INSTALL}/include/${python_name} \ - -v ${PRODUCT_INSTALL}/sip -p linux-g++-64 -else - python ./configure.py -b ${PRODUCT_INSTALL}/bin \ - -d ${PRODUCT_INSTALL}/lib/${python_name}/site-packages \ - -e ${PRODUCT_INSTALL}/include/${python_name} \ - -v ${PRODUCT_INSTALL}/sip -fi -if [ $? -ne 0 ] -then - echo "ERROR on configure" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/six.sh b/data/compil_scripts/six.sh deleted file mode 100755 index 7837bf0..0000000 --- a/data/compil_scripts/six.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "six" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL -mkdir -p $PRODUCT_INSTALL -echo - -cp -r $SOURCE_DIR/* . - -# Making a directory that will be used in install -BUILD_DIR=`pwd` -cd $PRODUCT_INSTALL -mkdir -p lib/python2.7/site-packages -cd $BUILD_DIR -# Hack PYTHONPATH in order to make 'setup.py install' believe that PRODUCT_INSTALL is in PYTHONPATH -PYTHONPATH_SAVE=$PYTHONPATH -export PYTHONPATH=${PRODUCT_INSTALL}/lib/python2.7/site-packages:$PYTHONPATH - -echo "*** setup.py BUILD" -python setup.py build - - -echo "*** setup.py INSTALL" -python setup.py install --prefix=${PRODUCT_INSTALL} - -if [ $? -ne 0 ] -then - export PYTHONPATH=$PYTHONPATH_SAVE - echo "ERROR on setup" - exit 3 -fi - -export PYTHONPATH=$PYTHONPATH_SAVE - -echo -echo "########## END" - diff --git a/data/compil_scripts/swig.sh b/data/compil_scripts/swig.sh deleted file mode 100755 index 00d4242..0000000 --- a/data/compil_scripts/swig.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "swig" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -#echo -#echo "*** autogen" -#./autogen.sh -#if [ $? -ne 0 ] -#then -# echo "ERROR on autogen" -# exit 1 -#fi - -echo -echo "*** configure" -$SOURCE_DIR/configure --prefix=${PRODUCT_INSTALL} --without-pcre --without-octave -if [ $? -ne 0 ] -then - echo "ERROR on configure" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "*** link swig2.0 -> swig" -cd $PRODUCT_INSTALL/bin -ln -s swig swig2.0 -if [ $? -ne 0 ] -then - echo "ERROR on link swig2.0 -> swig" - exit 4 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/tcl.sh b/data/compil_scripts/tcl.sh deleted file mode 100755 index 76b8d97..0000000 --- a/data/compil_scripts/tcl.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "tcl" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -echo -echo "*** configure" -$SOURCE_DIR/unix/configure --prefix=$PRODUCT_INSTALL --enable-shared --enable-threads -if [ $? -ne 0 ] -then - echo "ERROR on configure" - exit 1 -fi - -echo -echo "*** make" $MAKE_OPTIONS -make $MAKE_OPTIONS -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -echo -echo "########## END" - diff --git a/data/compil_scripts/tk.sh b/data/compil_scripts/tk.sh deleted file mode 100755 index a05af81..0000000 --- a/data/compil_scripts/tk.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "tk" $VERSION -echo "##########################################################################" - -rm -Rf $PRODUCT_INSTALL - -cp $TCLHOME/include/*.h generic/ - -echo -echo "*** configure" -$SOURCE_DIR/unix/configure --prefix=$TCLHOME --enable-shared --enable-threads \ - --with-tcl=$TCLHOME/lib --with-tclinclude=$TCLHOME/include -if [ $? -ne 0 ] -then - echo "ERROR on configure" - exit 2 -fi - -echo -echo "*** make" -make -if [ $? -ne 0 ] -then - echo "ERROR on make" - exit 2 -fi - -echo -echo "*** make install" -make install -if [ $? -ne 0 ] -then - echo "ERROR on make install" - exit 3 -fi - -mkdir -p $PRODUCT_INSTALL -echo "Tk is installed into tcl dir $TCLHOME" > $PRODUCT_INSTALL/README -cp tkConfig.sh $TCLHOME/lib #Needed fot netgen - -echo -echo "########## END" - diff --git a/data/env_scripts/CAS.py b/data/env_scripts/CAS.py deleted file mode 100644 index ada7cdf..0000000 --- a/data/env_scripts/CAS.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path -import platform - -def set_env(env, prereq_dir, version): - env.set('CASROOT', prereq_dir) - root = env.get('CASROOT') - - # [CMake GUI] Nouveau nom pour CASROOT = CAS_ROOT_DIR 22/03/2013 - env.set('CAS_ROOT_DIR', prereq_dir) - - env.prepend('PATH', os.path.join(root, 'bin')) - - l = [] - l.append(os.path.join(root, 'lib')) - l.append(os.path.join(root, 'lin', 'lib')) - if platform.system()=="Windows" : - l.append(os.path.join(root, 'win64', 'vc10' ,'lib')) - l.append(os.path.join(root, 'win64', 'vc10' ,'bin')) - l.append(os.path.join(root, 'inc')) - env.prepend('PATH', l) - else : - env.prepend('LD_LIBRARY_PATH', l) - - env.set('CSF_UnitsLexicon', os.path.join(root, 'src', 'UnitsAPI', 'Lexi_Expr.dat')) - env.set('CSF_UnitsDefinition', os.path.join(root, 'src', 'UnitsAPI', 'Units.dat')) - env.set('CSF_SHMessage', os.path.join(root, 'src', 'SHMessage')) - env.set('CSF_XSMessage', os.path.join(root, 'src', 'XSMessage')) - env.set('CSF_MDTVFontDirectory', os.path.join(root, 'src', 'FontMFT')) - env.set('CSF_MDTVTexturesDirectory', os.path.join(root, 'src', 'Textures')) - env.set('MMGT_REENTRANT', "1") - env.set('CSF_StandardDefaults', os.path.join(root, 'src', 'StdResource')) - env.set('CSF_PluginDefaults', os.path.join(root, 'src', 'StdResource')) - env.prepend('PATH', root) - - env.set('LIB', '$LD_LIBRARY_PATH') - -def set_nativ_env(env): - pass diff --git a/data/env_scripts/Cython.py b/data/env_scripts/Cython.py deleted file mode 100644 index 103e3b6..0000000 --- a/data/env_scripts/Cython.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os - -def set_env(env, prereq_dir, version): - env.set("CYTHON_ROOT_DIR",prereq_dir) - env.prepend('PATH', os.path.join(prereq_dir, 'bin')) - - versionPython = env.get('PYTHON_VERSION') - env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'lib', 'python' + versionPython, 'site-packages')) - env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'bin')) - pass - -def set_nativ_env(env): - pass diff --git a/data/env_scripts/Homard.py b/data/env_scripts/Homard.py deleted file mode 100755 index 9c49ae3..0000000 --- a/data/env_scripts/Homard.py +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -def set_env(env, prereq_dir, version): - env.set('HOMARD_REP_EXE', prereq_dir) - root = env.get('HOMARD_REP_EXE') - env.set('HOMARD_EXE', 'homard') - - env.prepend('PATH', root) - -def set_nativ_env(env): - pass diff --git a/data/env_scripts/Jinja2.py b/data/env_scripts/Jinja2.py deleted file mode 100755 index 17b9815..0000000 --- a/data/env_scripts/Jinja2.py +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('JINJADIR', prereq_dir) - env.set('JINJA_ROOT_DIR', prereq_dir) # update for cmake - root = env.get('JINJADIR') - pyver = 'python' + env.get('PYTHON_VERSION') - - env.prepend('PATH', os.path.join(root, 'bin')) - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib', pyver, 'site-packages')) - env.prepend('PYTHONPATH', os.path.join(root, 'lib', pyver, 'site-packages')) - -def set_nativ_env(env): - env.set('JINJA_ROOT_DIR', '/usr') # update for cmake - env.set('JINJADIR', '/usr') - pass diff --git a/data/env_scripts/MeshGems.py b/data/env_scripts/MeshGems.py deleted file mode 100644 index bfc0634..0000000 --- a/data/env_scripts/MeshGems.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path -import platform - -def set_env(env, prereq_dir, version): - env.add_comment("Here you can define your license parameters for MeshGems") - env.add_comment("DISTENE license") - - if not env.is_defined("LICENSE_FILE"): - script = os.path.join(os.path.dirname(os.path.realpath(__file__)), "distene_license.py") - assert os.path.exists(script), "distene_license.py not found!" - env.run_simple_env_script(script) - - env.set('MESHGEMSHOME', prereq_dir) - env.set('MESHGEMS_ROOT_DIR', prereq_dir) # update for cmake - root = env.get('MESHGEMSHOME') - - if platform.system() == "Windows" : - env.prepend('PATH', os.path.join(root, 'bin')) - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - else : - - libdir = "Linux_64" - - env.prepend('PATH', os.path.join(root, 'bin')) - env.prepend('PATH', os.path.join(root, 'bin', libdir)) - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib', libdir)) - - - -def set_nativ_env(env): - pass diff --git a/data/env_scripts/ParMetis.py b/data/env_scripts/ParMetis.py deleted file mode 100644 index d4b6857..0000000 --- a/data/env_scripts/ParMetis.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('PARMETISDIR', prereq_dir) - env.set('PARMETIS_ROOT_DIR', prereq_dir) # update for cmake - root = env.get('PARMETISDIR') - - env.prepend('LD_LIBRARY_PATH', root) - env.prepend('PATH', root) -# env.prepend('PATH', os.path.join(root, "Graphs")) - -def set_nativ_env(env): - pass diff --git a/data/env_scripts/ParaView.py b/data/env_scripts/ParaView.py deleted file mode 100644 index 8453482..0000000 --- a/data/env_scripts/ParaView.py +++ /dev/null @@ -1,80 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path -import platform - -def set_env(env, prereq_dir, version): - # keep only the first two version numbers - ver = '.'.join(version.replace('-', '.').split('.')[:2]) - - # BUG WITH 5.0_beta - if ver == '5.0_beta': - ver = '5.0' - - env.set('PVHOME', prereq_dir) - env.set('VTKHOME', prereq_dir) - - env.set('PVVERSION', ver) - # [CMake GUI] Nouveau nom pour PVHOME = PARAVIEW_ROOT_DIR 22/03/2013 - # [CMake GUI] Nouveau nom pour PVVERSION = PARAVIEW_VERSION 22/03/2013 - env.set('PARAVIEW_ROOT_DIR', prereq_dir) - - env.set('PARAVIEW_VERSION', ver) - version = env.get('PVVERSION') # = ${PVVERSION} - - set_paraview_env(env, version) - set_vtk_env(env, version) - -def set_nativ_env(env): - if os.getenv("PVHOME") is None: - raise Exception("PVHOME is not set") - - if os.getenv("PVVERSION") is None: - raise Exception("PVVERSION is not set") - - version = env.get("PVVERSION") - set_paraview_env(env, version) - -def set_paraview_env(env, version): - root = env.get('PVHOME') - - env.set('ParaView_DIR', os.path.join(root, 'lib', 'paraview-%s' % version)) - - env.prepend('PATH', os.path.join(root, 'bin')) - env.prepend('PATH', os.path.join(root, 'include', 'paraview-' + version)) - - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib', 'paraview-' + version)) - - paralib = os.path.join(root, 'lib', 'paraview-' + version) - env.prepend('PYTHONPATH', paralib) - env.set('PV_PLUGIN_PATH', paralib) - env.prepend('PYTHONPATH', os.path.join(paralib, 'site-packages')) - env.prepend('PYTHONPATH', os.path.join(paralib, 'site-packages', 'vtk')) - - -def set_vtk_env(env, version): - root = env.get('VTKHOME') - pyver = 'python' + env.get('PYTHON_VERSION') - - env.prepend('PATH', os.path.join(root, 'bin')) - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - env.prepend('PYTHONPATH', os.path.join(root, 'lib', pyver, 'site-packages')) - #http://computer-programming-forum.com/57-tcl/1dfddc136afccb94.htm - #Tcl treats the contents of that variable as a list. Be happy, for you can now use drive letters on windows. - env.prepend('TCLLIBPATH', os.path.join(root, 'lib', 'vtk-5.0', 'tcl'), sep=" ") - - env.set('VTK_ROOT_DIR', root) - if platform.system() == "Windows" : - env.set('VTK_DIR', os.path.join(root, 'lib', 'cmake', 'paraview-' + version)) - env.prepend('VTK_ROOT_DIR', os.path.join(root, 'lib', 'cmake', 'paraview-' + version)) - else : - env.set('VTK_DIR', os.path.join(root, 'lib', 'paraview-' + version)) - env.prepend('VTK_ROOT_DIR', os.path.join(root, 'lib', 'paraview-' + version)) - - # 20 03 2013 compilation de PARAVIS basé sur paraview 3.98.1 et VTK 6 - if version == '3.98': - cmake_dir = os.path.join(root, 'lib', 'cmake', 'paraview-' + version) - env.set('VTK_DIR', cmake_dir) - # fin - diff --git a/data/env_scripts/PyQt.py b/data/env_scripts/PyQt.py deleted file mode 100644 index c93214b..0000000 --- a/data/env_scripts/PyQt.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('PYQTDIR', prereq_dir) - version_table = version.split('.') - if version_table[0] == '5': - env.set('PYQT5_ROOT_DIR', prereq_dir) - else: - env.set('PYQT4_ROOT_DIR', prereq_dir) - root = env.get('PYQTDIR') - pyver = 'python' + env.get('PYTHON_VERSION') - - env.set('PYQT_SIPS', os.path.join(root, 'sip')) - env.prepend('PATH', os.path.join(root, 'bin')) - env.prepend('LD_LIBRARY_PATH', root) - - l = [] - l.append(root) # for old version of pyqt - l.append(os.path.join(root, 'lib', pyver, 'site-packages')) - env.prepend('PYTHONPATH', l) - -def set_nativ_env(env): - env.set('PYQTDIR', '/usr') - env.set('PYQT4_ROOT_DIR', '/usr') - pass diff --git a/data/env_scripts/Pygments.py b/data/env_scripts/Pygments.py deleted file mode 100755 index dc7808e..0000000 --- a/data/env_scripts/Pygments.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('PYGMENTS_ROOT_DIR', prereq_dir) # update for cmake - env.set('PYGMENTSDIR', prereq_dir) - root = env.get('PYGMENTSDIR') - pyver = 'python' + env.get('PYTHON_VERSION') - - env.prepend('PATH', os.path.join(root, 'bin')) - env.prepend('PYTHONPATH', os.path.join(root, 'lib', pyver, 'site-packages')) - -def set_nativ_env(env): - pass diff --git a/data/env_scripts/Python.py b/data/env_scripts/Python.py deleted file mode 100644 index e95ee37..0000000 --- a/data/env_scripts/Python.py +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path, platform - -def set_env(env,prereq_dir,version,forBuild=None): - # keep only the first two version numbers - version = '.'.join(version.replace('-', '.').split('.')[:2]) - - env.set('PYTHONHOME', prereq_dir) - - # [CMake KERNEL] Nouveau nom pour PYTHONHOME = PYTHON_ROOT_DIR 22/03/2013 - env.set('PYTHON_ROOT_DIR', prereq_dir) - root = env.get('PYTHON_ROOT_DIR') - - env.prepend('PATH', root) - env.prepend('PATH', os.path.join(root, 'bin')) - - l = [] - l.append(os.path.join(root, 'lib')) - #l.append(os.path.join(root, 'lib', 'python' + version)) - - if platform.system() == "Windows" : - env.prepend('PATH', l) - env.set('PYTHON_INCLUDE', os.path.join(root, 'include')) - env.prepend('PYTHONPATH', os.path.join(root, 'Lib')) - env.prepend('PYTHONPATH', os.path.join(root, 'lib','site-packages')) - - env.set('PYTHONBIN', os.path.join(root, 'python.exe')) # needed for runSalome.py - else : - env.prepend('LD_LIBRARY_PATH', l) - env.set('PYTHON_INCLUDE', os.path.join(root, 'include', 'python' + version)) - env.prepend('PYTHONPATH', os.path.join(root, 'lib', 'python' + version)) - env.prepend('PYTHONPATH', os.path.join(root, 'lib', 'python' + version, 'site-packages')) - - env.set('PYTHONBIN', os.path.join(root, 'bin','python')) # needed for runSalome.py - - env.set('PYTHON_VERSION', version) - - -def set_nativ_env(env): - import sys - #env.set('PYTHONHOME',"%s.%s" % sys.version_info[0:2]) - env.set('PYTHON_ROOT_DIR', '/usr') - env.set('PYTHON_VERSION', "%s.%s" % sys.version_info[0:2]) - pass diff --git a/data/env_scripts/Sphinx.py b/data/env_scripts/Sphinx.py deleted file mode 100755 index da5d9e1..0000000 --- a/data/env_scripts/Sphinx.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('SPHINXDIR', prereq_dir) - env.set('SPHINX_ROOT_DIR', prereq_dir) - root = env.get('SPHINXDIR') - pyver = 'python' + env.get('PYTHON_VERSION') - - env.prepend('PATH', os.path.join(root, 'bin')) - env.prepend('PYTHONPATH', os.path.join(root, 'lib', pyver, 'site-packages')) - -def set_nativ_env(env): - env.set('SPHINXDIR', '/usr') - env.set('SPHINX_ROOT_DIR', '/usr') - pass diff --git a/data/env_scripts/boost.py b/data/env_scripts/boost.py deleted file mode 100755 index 9b84ed5..0000000 --- a/data/env_scripts/boost.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path -import platform - -def set_env(env, prereq_dir, version): - env.set('BOOSTDIR', prereq_dir) - env.set('BOOST_ROOT_DIR', prereq_dir) - root = env.get('BOOSTDIR') - - env.prepend('PATH', os.path.join(root, 'include')) - if platform.system() == "Windows" : - env.prepend('PATH', os.path.join(root, 'lib')) - else : - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - -def set_nativ_env(env): - env.set('BOOSTDIR', '/usr') - env.set('BOOST_ROOT_DIR', '/usr') - pass diff --git a/data/env_scripts/cgns.py b/data/env_scripts/cgns.py deleted file mode 100644 index 0dae34c..0000000 --- a/data/env_scripts/cgns.py +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path, platform - -def set_env(env, prereq_dir, version): - env.set('CGNS_ROOT_DIR', prereq_dir) - root = env.get('CGNS_ROOT_DIR') - env.prepend('PATH', os.path.join(root, 'bin')) - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - -def set_nativ_env(env): - pass diff --git a/data/env_scripts/cmake.py b/data/env_scripts/cmake.py deleted file mode 100755 index e5a7a4b..0000000 --- a/data/env_scripts/cmake.py +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('CMAKE_ROOT', prereq_dir) - root = env.get('CMAKE_ROOT') - - env.prepend('PATH', os.path.join(root, 'bin')) - -def set_nativ_env(env): - env.set('CMAKE_ROOT', '/usr') - diff --git a/data/env_scripts/cppunit.py b/data/env_scripts/cppunit.py deleted file mode 100644 index eb8aeb2..0000000 --- a/data/env_scripts/cppunit.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('CPPUNITHOME', prereq_dir) - env.set('CPPUNIT_ROOT', prereq_dir) - env.set('CPPUNIT_ROOT_DIR', prereq_dir) # update for cmake - root = env.get('CPPUNITHOME') - - env.set('CPPUNITINSTDIR', root) - env.prepend('PATH', os.path.join(root, 'bin')) - import platform - if platform.system() == "Windows" : - env.prepend('PATH', os.path.join(root, 'lib')) - else : - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - -def set_nativ_env(env): - env.set('CPPUNIT_ROOT_DIR', '/usr') # update for cmake - env.set('CPPUNITHOME','/usr') - env.set('CPPUNIT_ROOT','/usr') diff --git a/data/env_scripts/dateutil.py b/data/env_scripts/dateutil.py deleted file mode 100644 index cf0f30c..0000000 --- a/data/env_scripts/dateutil.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path -import platform - -def set_env(env, prereq_dir, version): - env.set('DATEUTIL_ROOT_DIR', env.get('PYTHON_ROOT_DIR')) - - if platform.system() == "Windows" : - env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'lib', 'site-packages')) - else: - pyver = 'python' + env.get('PYTHON_VERSION') - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) - -def set_nativ_env(env): - pass diff --git a/data/env_scripts/distene_license.py b/data/env_scripts/distene_license.py deleted file mode 100644 index f2ebe29..0000000 --- a/data/env_scripts/distene_license.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def load_env(env): - license_file = '/data/tmpsalome/salome/prerequis/install/LICENSE/dlim8.var.sh' - if os.path.exists(license_file): - env.add_line(1) - env.add_comment("Set DISTENE License") - env.set('DISTENE_LICENSE_FILE', 'Use global envvar: DLIM8VAR') - env.set('DISTENE_LICENCE_FILE_FOR_MGCLEANER', license_file) - env.set('DISTENE_LICENCE_FILE_FOR_YAMS', license_file) - - if os.access(license_file, os.R_OK): - lines = open(license_file, "r").readlines() - for line in lines: - if line[:8] == "DLIM8VAR": - # line is: DLIM8VAR=""\n - key = line.strip().split('=')[1] - key = key.strip().strip('"') - env.set("DLIM8VAR", key) - break diff --git a/data/env_scripts/distribute.py b/data/env_scripts/distribute.py deleted file mode 100644 index 202efac..0000000 --- a/data/env_scripts/distribute.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path -import platform - -def set_env(env, prereq_dir, version): - env.set('DISTRIBUTE_ROOT_DIR', env.get('PYTHON_ROOT_DIR')) - - if platform.system() == "Windows" : - env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'lib', 'site-packages')) - else: - env.prepend('PATH', os.path.join(prereq_dir, 'bin')) - pyver = 'python' + env.get('PYTHON_VERSION') - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'bin')) - pass - -def set_nativ_env(env): - pass diff --git a/data/env_scripts/docutils.py b/data/env_scripts/docutils.py deleted file mode 100755 index bf3d0c3..0000000 --- a/data/env_scripts/docutils.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('DOCUTILSDIR', prereq_dir) - env.set('DOCUTILS_ROOT_DIR', prereq_dir) # update for cmake - pyver = 'python' + env.get('PYTHON_VERSION') - env.prepend('PATH', os.path.join(env.get('DOCUTILSDIR'), 'bin')) - env.prepend('PYTHONPATH', os.path.join(env.get('DOCUTILSDIR'), 'lib', pyver, 'site-packages')) - -def set_nativ_env(env): - env.set('DOCUTILS_ROOT_DIR', '/usr') # update for cmake - env.set('DOCUTILSDIR', '/usr') - pass diff --git a/data/env_scripts/doxygen.py b/data/env_scripts/doxygen.py deleted file mode 100755 index 551bf83..0000000 --- a/data/env_scripts/doxygen.py +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('DOXYGENDIR', prereq_dir) - env.set('DOXYGEN_ROOT_DIR', prereq_dir) - env.prepend('PATH', os.path.join(env.get('DOXYGENDIR'), 'bin')) - -def set_nativ_env(env): - env.set('DOXYGENDIR', '/usr') - env.set('DOXYGEN_ROOT_DIR', '/usr') - pass diff --git a/data/env_scripts/fftw.py b/data/env_scripts/fftw.py deleted file mode 100644 index 8018811..0000000 --- a/data/env_scripts/fftw.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path, platform - -def set_env(env,prereq_dir,version,forBuild=None): - version = '.'.join(version.replace('-', '.').split('.')[:2]) - env.set('FFTW_VERSION', version) - - env.set('FFTWHOME', prereq_dir) - - env.set('FFTW_ROOT_DIR', prereq_dir) - root = env.get('FFTW_ROOT_DIR') - - env.prepend('PATH', root) - env.prepend('PATH', os.path.join(root, 'bin')) - - l = [] - l.append(os.path.join(root, 'lib')) - - if platform.system() == "Windows" : - env.prepend('PATH', l) - else: - env.prepend('LD_LIBRARY_PATH', l) - - env.set('FFTW_INCLUDE', os.path.join(root, 'include')) - env.prepend('FFTWPATH', os.path.join(root, 'lib')) - -def set_nativ_env(env): - import sys - pass - - diff --git a/data/env_scripts/freeimage.py b/data/env_scripts/freeimage.py deleted file mode 100644 index b569fd6..0000000 --- a/data/env_scripts/freeimage.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path -import platform - -def set_env(env, prereq_dir, version): - env.set('FREEIMAGEDIR', prereq_dir) - env.set('FREEIMAGE_ROOT_DIR', prereq_dir) # update for cmake - root = env.get('FREEIMAGEDIR') - - env.prepend('PATH', os.path.join(root, 'bin')) - if platform.system() == "Windows" : - env.prepend('PATH', os.path.join(root, 'lib')) - else: - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - -def set_nativ_env(env): - env.set('FREEIMAGE_ROOT_DIR', '/usr') # update for cmake - env.set('FREEIMAGEDIR', '/usr') - pass diff --git a/data/env_scripts/freetype.py b/data/env_scripts/freetype.py deleted file mode 100644 index c030029..0000000 --- a/data/env_scripts/freetype.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- -import os - -def set_env(env, prereq_dir, version): - env.set('FREETYPEDIR', prereq_dir) - env.set('FREETYPE_ROOT_DIR', prereq_dir) # update for cmake - env.prepend('PATH', os.path.join(env.get('FREETYPE_ROOT_DIR'), 'bin')) - env.prepend('INCLUDE', os.path.join(env.get('FREETYPE_ROOT_DIR'), 'include')) - env.prepend('CPLUS_INCLUDE_PATH', os.path.join(prereq_dir, 'include', 'freetype2')) - -def set_nativ_env(env): - env.set('FREETYPE_ROOT_DIR', '/usr') # update for cmake - env.set('FREETYPEDIR', '/usr') - pass diff --git a/data/env_scripts/gl2ps.py b/data/env_scripts/gl2ps.py deleted file mode 100755 index 0cb0e06..0000000 --- a/data/env_scripts/gl2ps.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('GL2PSDIR', prereq_dir) - env.set('GL2PS_ROOT_DIR', prereq_dir) - - root = env.get('GL2PSDIR') - env.prepend('PATH', os.path.join(root, 'bin')) - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - -def set_nativ_env(env): - env.set('GL2PSDIR', '/usr') - env.set('GL2PS_ROOT_DIR', '/usr') - pass diff --git a/data/env_scripts/graphviz.py b/data/env_scripts/graphviz.py deleted file mode 100644 index 44f4564..0000000 --- a/data/env_scripts/graphviz.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path -import platform - -def set_env(env, prereq_dir, version): - env.set('GRAPHVIZROOT', prereq_dir) - env.set('GRAPHVIZ_ROOT_DIR', prereq_dir) - root = env.get('GRAPHVIZROOT') - - l = [] - l.append(os.path.join(root, 'bin')) - l.append(os.path.join(root, 'include', 'graphviz')) - env.prepend('PATH', l) - - l = [] - l.append(os.path.join(root, 'lib')) - l.append(os.path.join(root, 'lib', 'graphviz')) - - if platform.system() == "Windows" : - env.prepend('LIB', l) - env.prepend('INCLUDE', os.path.join(root, 'include')) - else : - env.prepend('LD_LIBRARY_PATH', l) - -def set_nativ_env(env): - env.set('GRAPHVIZROOT', '/usr') - env.set('GRAPHVIZ_ROOT_DIR', '/usr') - pass diff --git a/data/env_scripts/hdf5.py b/data/env_scripts/hdf5.py deleted file mode 100644 index 974b19d..0000000 --- a/data/env_scripts/hdf5.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path, platform - -def set_env(env, prereq_dir, version): - env.set('HDF5HOME', prereq_dir) - env.set('HDF5_DIR', prereq_dir) - env.set('HDF5_ROOT', prereq_dir) - env.set('HDF5_ROOT_DIR', prereq_dir) - root = env.get('HDF5HOME') - - env.prepend('PATH', os.path.join(root, 'bin')) - - env.set('HDF5_LIBRARIES', os.path.join(root, 'lib')) - env.set('HDF5_INCLUDE_DIRS', os.path.join(root, 'include')) - env.set('HDF5_VERSION', version) - - if platform.system() == "Windows" : - env.prepend('PATH', os.path.join(root, 'lib')) - else : - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - -def set_nativ_env(env): - env.set('HDF5HOME', '/usr') - env.set('HDF5_ROOT', '/usr') - env.set('HDF5_ROOT_DIR', '/usr') # update for cmake - pass diff --git a/data/env_scripts/lapack.py b/data/env_scripts/lapack.py deleted file mode 100644 index 5bc3941..0000000 --- a/data/env_scripts/lapack.py +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('LAPACKHOME', prereq_dir) - env.set('LAPACK_ROOT_DIR', prereq_dir) - env.set('LAPACK_SRC', os.path.join(prereq_dir,'SRC')) - #env.set('LAPACK', os.path.join(prereq_dir)) - env.set('BLAS_SRC', os.path.join(prereq_dir,'BLAS','SRC')) - root = env.get('LAPACKHOME') - - env.prepend('PATH', os.path.join(root, 'lapacke','include')) - env.prepend('PATH', os.path.join(root, 'lib')) - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - env.prepend('PYTHONPATH', os.path.join(root, 'Lib')) - - # FOR NUMPY AND SCIPY - env.set('BLAS', os.path.join(root, 'lib')) - env.set('LAPACK', os.path.join(root, 'lib')) - env.set('ATLAS', os.path.join(root, 'lib')) - - -def set_nativ_env(env): - env.set('LAPACKHOME', '/usr') - pass diff --git a/data/env_scripts/libxml2.py b/data/env_scripts/libxml2.py deleted file mode 100644 index 55985d1..0000000 --- a/data/env_scripts/libxml2.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('LIBXML_DIR', prereq_dir) - env.set('LIBXML2_ROOT_DIR', prereq_dir) - root = env.get('LIBXML_DIR') - pyver = 'python' + env.get('PYTHON_VERSION') - - env.prepend('INCLUDE', os.path.join(root, 'include')) - env.prepend('PATH', os.path.join(root, 'bin')) - env.prepend('PATH', os.path.join(root, 'lib')) - env.prepend('PYTHONPATH', os.path.join(root, 'lib', pyver, 'site-packages')) - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - -def set_nativ_env(env): - env.set('LIBXML_DIR', '/usr') - env.set('LIBXML2_ROOT_DIR', '/usr') - pass diff --git a/data/env_scripts/markupsafe.py b/data/env_scripts/markupsafe.py deleted file mode 100644 index 096a133..0000000 --- a/data/env_scripts/markupsafe.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os -import platform - -def set_env(env, prereq_dir, version): - env.set("MARKUPSAFE_ROOT_DIR",prereq_dir) - env.prepend('PATH', os.path.join(prereq_dir, 'bin')) - - if platform.system() == "Windows" : - env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'lib', 'site-packages')) - else: - versionPython = env.get('PYTHON_VERSION') - env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'lib', 'python' + versionPython, 'site-packages')) - env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'bin')) - pass - -def set_nativ_env(env): - pass diff --git a/data/env_scripts/matplotlib.py b/data/env_scripts/matplotlib.py deleted file mode 100644 index 7399307..0000000 --- a/data/env_scripts/matplotlib.py +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('MATPLOTLIB_ROOT_DIR', prereq_dir) - pyver = 'python' + env.get('PYTHON_VERSION') - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) - # FOR THE FILE CONFIG MATPLOTLIBRC - env.set('MPLCONFIGDIR', env.get('MATPLOTLIB_ROOT_DIR')) - -def set_nativ_env(env): - pass diff --git a/data/env_scripts/med.py b/data/env_scripts/med.py deleted file mode 100644 index 54ca550..0000000 --- a/data/env_scripts/med.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path, platform - -def set_env(env, prereq_dir, version): - env.set('MED3HOME', prereq_dir) - env.set('MED2HOME', prereq_dir) - env.set('MEDFILE_ROOT_DIR', prereq_dir) # update for cmake - root = env.get('MED3HOME') - - env.prepend('PATH', os.path.join(root, 'bin')) - - if platform.system() == "Windows" : - env.prepend('PATH', os.path.join(root, 'lib')) - else : - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - - -def set_nativ_env(env): - env.set('MEDFILE_ROOT_DIR', '/usr') # update for cmake - env.set('MED3HOME', '/usr') - env.set('MED2HOME', '/usr') - pass diff --git a/data/env_scripts/metis.py b/data/env_scripts/metis.py deleted file mode 100755 index 9d87c4c..0000000 --- a/data/env_scripts/metis.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -def set_env(env, prereq_dir, version): - env.set('METISDIR', prereq_dir) - env.set('METIS_ROOT_DIR', prereq_dir) # update for cmake - -def set_nativ_env(env): - env.set('METISDIR', '/usr') - env.set('METIS_ROOT_DIR', '/usr') # update for cmake - pass diff --git a/data/env_scripts/netgen.py b/data/env_scripts/netgen.py deleted file mode 100644 index 9ef9716..0000000 --- a/data/env_scripts/netgen.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path -import platform - -def set_env(env, prereq_dir, version): - env.set('NETGENHOME', prereq_dir) - - env.set('NETGEN_ROOT_DIR', prereq_dir) - root = env.get('NETGENHOME') - - env.set('NETGEN_INCLUDE_DIRS', os.path.join(root, 'include')) - env.set('NETGEN_LIBRARIES', os.path.join(root, 'lib')) - env.prepend('PATH', os.path.join(root, 'bin')) - - if platform.system() == "Windows" : - env.prepend('PATH', os.path.join(root, 'lib')) - else : - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - -def set_nativ_env(env): - env.set('NETGEN_ROOT_DIR', '/usr') # update for cmake - env.set('NETGENHOME', '/usr') - pass diff --git a/data/env_scripts/numpy.py b/data/env_scripts/numpy.py deleted file mode 100644 index 4020307..0000000 --- a/data/env_scripts/numpy.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - pyver = 'python' + env.get('PYTHON_VERSION') - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'bin')) - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) - #l0=os.path.join(prereq_dir, 'lib', pyver, 'site-packages','numpy') - #l=[os.path.join(l0,'core'),os.path.join(l0,'fft'),os.path.join(l0,'lib'),os.path.join(l0,'linalg'),os.path.join(l0,'numarray'),os.path.join(l0,'random')] - #env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages','numpy','linalg')) - -def set_nativ_env(env): - pass diff --git a/data/env_scripts/omniORB.py b/data/env_scripts/omniORB.py deleted file mode 100644 index f7caaf5..0000000 --- a/data/env_scripts/omniORB.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path -import platform - -def set_env(env, prereq_dir, version): - env.set('OMNIORB_ROOT_DIR', prereq_dir) # update for cmake - root = env.get('OMNIORB_ROOT_DIR') - pyver = 'python' + env.get('PYTHON_VERSION') - - env.prepend('PATH', os.path.join(root, 'bin')) - env.prepend('LD_LIBRARY_PATH',os.path.join(root, 'lib')) - - env.prepend( 'PYTHONPATH', os.path.join(root, 'lib') ) - env.prepend( 'PYTHONPATH', os.path.join(root, 'lib', 'python') ) - env.prepend( 'PYTHONPATH', os.path.join(root, 'lib', pyver, 'site-packages') ) - env.prepend( 'PYTHONPATH', os.path.join(root, 'lib64', pyver, 'site-packages') ) - - if platform.system() == "Windows" : - env.prepend('PATH', os.path.join(root, 'bin', 'x86_win32')) - env.prepend('LD_LIBRARY_PATH',os.path.join(root, 'lib', 'x86_win32')) - env.prepend( 'PYTHONPATH', os.path.join(root, 'lib', 'x86_win32') ) - -def set_nativ_env(env): - env.set('OMNIORB_ROOT_DIR', "/usr") # update for cmake - env.set('OMNIORBDIR', "/usr") - env.set('OMNIORB_DIR', "/usr") - env.set('OMNIORBDIR_INC', "/usr/include/omniORB4") - pass diff --git a/data/env_scripts/omniORBpy.py b/data/env_scripts/omniORBpy.py deleted file mode 100644 index 21a7d14..0000000 --- a/data/env_scripts/omniORBpy.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -def set_env(env, prereq_dir, version): - omniorb_root_dir = env.get('OMNIORB_ROOT_DIR') - env.set('OMNIORBPY_ROOT_DIR', omniorb_root_dir) - -def set_nativ_env(env): - env.set('OMNIORBPY_ROOT_DIR',"/usr") - pass - diff --git a/data/env_scripts/opencv.py b/data/env_scripts/opencv.py deleted file mode 100755 index 37a1424..0000000 --- a/data/env_scripts/opencv.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('OPENCV_ROOT_DIR', prereq_dir) - env.set('OPENCV_HOME', prereq_dir) - root = env.get('OPENCV_ROOT_DIR') - - env.prepend('PATH', os.path.join(root, 'include')) - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - -def set_nativ_env(env): - env.set('OPENCV_ROOT_DIR', '/usr') - env.set('OPENCV_HOME', '/usr') - diff --git a/data/env_scripts/pyparsing.py b/data/env_scripts/pyparsing.py deleted file mode 100644 index b4bb3bb..0000000 --- a/data/env_scripts/pyparsing.py +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('PYPARSING_ROOT_DIR', env.get('PYTHON_ROOT_DIR')) - pyver = 'python' + env.get('PYTHON_VERSION') - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) - -def set_nativ_env(env): - pass diff --git a/data/env_scripts/pyreadline.py b/data/env_scripts/pyreadline.py deleted file mode 100755 index 2182e8a..0000000 --- a/data/env_scripts/pyreadline.py +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -# pyreadline install dir is PYTHON_ROOT_DIR, environment is set in Python.py - -def set_env(env, prereq_dir, version): - env.set('PYREADLINE_ROOT_DIR', env.get('PYTHON_ROOT_DIR')) - -def set_nativ_env(env): - env.set('PYREADLINE_ROOT_DIR', env.get('PYTHON_ROOT_DIR')) - - diff --git a/data/env_scripts/pytz.py b/data/env_scripts/pytz.py deleted file mode 100644 index 6eb0876..0000000 --- a/data/env_scripts/pytz.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path -import platform - -def set_env(env, prereq_dir, version): - env.set('PYTZ_ROOT_DIR', env.get('PYTHON_ROOT_DIR')) - - if platform.system() == "Windows" : - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', 'site-packages')) - else: - pyver = 'python' + env.get('PYTHON_VERSION') - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) - -def set_nativ_env(env): - pass diff --git a/data/env_scripts/qt.py b/data/env_scripts/qt.py deleted file mode 100644 index 38c9a58..0000000 --- a/data/env_scripts/qt.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path -import platform - -def set_env(env, prereq_dir, version): - env.set('QTDIR', prereq_dir) - version_table = version.split('.') - if version_table[0] == '5': - env.set('QT5_ROOT_DIR', prereq_dir) - else: - env.set('QT4_ROOT_DIR', prereq_dir) - - root = env.get('QTDIR') - - env.prepend('PATH', os.path.join(root, 'bin')) - - if version_table[0] == '5': - env.set('QT_PLUGIN_PATH', os.path.join(prereq_dir, 'plugins')) - env.set('QT_QPA_PLATFORM_PLUGIN_PATH', os.path.join(prereq_dir, 'plugins')) - - if platform.system() == "Windows" : - env.prepend('LIB', os.path.join(root, 'lib')) - env.prepend('PATH', os.path.join(root, 'lib')) - else : - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - -def set_nativ_env(env): - env.set('QTDIR','/usr') - env.set('QT4_ROOT_DIR','/usr') - pass - - diff --git a/data/env_scripts/qwt.py b/data/env_scripts/qwt.py deleted file mode 100755 index 5074d17..0000000 --- a/data/env_scripts/qwt.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('QWTHOME', prereq_dir) - env.set('QWT_ROOT_DIR', prereq_dir) - root = env.get('QWTHOME') - - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - -def set_nativ_env(env): - env.set('QWTHOME', '/usr') - env.set('QWT_ROOT_DIR', '/usr') - pass diff --git a/data/env_scripts/scipy.py b/data/env_scripts/scipy.py deleted file mode 100644 index 1bc0214..0000000 --- a/data/env_scripts/scipy.py +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os - -def set_env(env, prereq_dir, version): - env.set("SCIPY_ROOT_DIR",prereq_dir) - pyver = 'python' + env.get('PYTHON_VERSION') - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) - pass - -def set_nativ_env(env): - pass diff --git a/data/env_scripts/scotch.py b/data/env_scripts/scotch.py deleted file mode 100755 index 6dca51c..0000000 --- a/data/env_scripts/scotch.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -def set_env(env, prereq_dir, version): - env.set('SCOTCHDIR', prereq_dir) - env.set('SCOTCH_ROOT_DIR', prereq_dir) # update for cmake - -def set_nativ_env(env): - env.set('SCOTCH_ROOT_DIR', '/usr') # update for cmake - env.set('SCOTCHDIR', '/usr') - pass diff --git a/data/env_scripts/setuptools.py b/data/env_scripts/setuptools.py deleted file mode 100644 index 16c9f0b..0000000 --- a/data/env_scripts/setuptools.py +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('SETUPTOOLDIR', prereq_dir) - env.set('SETUPTOOLS_ROOT_DIR', prereq_dir) # update for cmake - - env.prepend('PATH', os.path.join(prereq_dir, 'bin')) - - versionPython = env.get('PYTHON_VERSION') - env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'lib', 'python' + versionPython, 'site-packages')) - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'bin')) - -def set_nativ_env(env): - env.set('SETUPTOOLS_ROOT_DIR', '/usr') # update for cmake - env.set('SETUPTOOLDIR', '/usr') - pass diff --git a/data/env_scripts/sip.py b/data/env_scripts/sip.py deleted file mode 100644 index a57c1f2..0000000 --- a/data/env_scripts/sip.py +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('SIPDIR', prereq_dir) - root = env.get('SIPDIR') - - # [CMake GUI] Nouveau nom pour SIPDIR = SIP_ROOT_DIR 22/03/2013 - env.set('SIP_ROOT_DIR', prereq_dir) - - pyver = 'python' + env.get('PYTHON_VERSION') - - env.prepend('CPLUS_INCLUDE_PATH', os.path.join(root, 'include', pyver)) - - env.prepend('PATH', os.path.join(root, 'bin')) - env.prepend('PYTHONPATH', os.path.join(root, 'lib', pyver, 'site-packages')) - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib', pyver, 'site-packages')) - - pyqt = env.get('PYQTDIR') - env.set('PYQT_SIPS_DIR', pyqt) - -def set_nativ_env(env): - env.set('SIPDIR', '/usr') - env.set('SIP_ROOT_DIR','/usr') - pass diff --git a/data/env_scripts/six.py b/data/env_scripts/six.py deleted file mode 100644 index 524dab9..0000000 --- a/data/env_scripts/six.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path -import platform - -def set_env(env, prereq_dir, version): - env.set('SIX_ROOT_DIR', env.get('PYTHON_ROOT_DIR')) - - env.prepend('PATH', os.path.join(prereq_dir, 'bin')) - - if platform.system() == "Windows" : - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', 'site-packages')) - else : - pyver = 'python' + env.get('PYTHON_VERSION') - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'bin')) - -def set_nativ_env(env): - pass diff --git a/data/env_scripts/swig.py b/data/env_scripts/swig.py deleted file mode 100644 index 01c8c70..0000000 --- a/data/env_scripts/swig.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path -import platform - -def set_env(env, prereq_dir, version): - env.set('SWIG_ROOT', prereq_dir) - env.set('SWIG_ROOT_DIR', prereq_dir) - - if platform.system() == "Windows" : - env.set('SWIG_LIB', os.path.join( prereq_dir, "lib" ) ) - else : - env.set('SWIG_LIB', os.path.join( prereq_dir, "share", "swig", version) ) - - root = env.get('SWIG_ROOT') - env.prepend('PATH', os.path.join(root, 'bin')) - -def set_nativ_env(env): - env.set('SWIG_ROOT_DIR', '/usr') - env.set('SWIG_ROOT', '/usr') diff --git a/data/env_scripts/tcl.py b/data/env_scripts/tcl.py deleted file mode 100644 index ef2b186..0000000 --- a/data/env_scripts/tcl.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('TCL_ROOT_DIR', prereq_dir) # update for cmake - env.set('TCLHOME', prereq_dir) - - root = env.get('TCLHOME') - env.prepend('PATH', os.path.join(root, 'bin')) - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - env.prepend('INCLUDE', os.path.join(root, 'include')) - - l = [] - l.append(os.path.join(root, 'lib')) - l.append(os.path.join(root, 'lib', 'tcl')) - #http://computer-programming-forum.com/57-tcl/1dfddc136afccb94.htm - #Tcl treats the contents of that variable as a list. Be happy, for you can now use drive letters on windows. - env.prepend('TCLLIBPATH', l, sep=" ") - env.set('TCL_SHORT_VERSION', version[:version.rfind('.')]) - -def set_nativ_env(env): - env.set('TCL_ROOT_DIR', '/usr') # update for cmake - env.set('TCLHOME', '/usr') diff --git a/data/env_scripts/tk.py b/data/env_scripts/tk.py deleted file mode 100755 index 1f4846e..0000000 --- a/data/env_scripts/tk.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path - -def set_env(env, prereq_dir, version): - env.set('TK_ROOT_DIR', prereq_dir) # update for cmake - env.set('TKHOME', prereq_dir) - root = env.get('TKHOME') - - env.prepend('PATH', os.path.join(root, 'bin')) - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - - l = [] - l.append(os.path.join(root, 'lib')) - l.append(os.path.join(root, 'lib', 'tk')) - #http://computer-programming-forum.com/57-tcl/1dfddc136afccb94.htm - #Tcl treats the contents of that variable as a list. Be happy, for you can now use drive letters on windows. - env.prepend('TKLIBPATH', l, sep=" ") - -def set_nativ_env(env): - env.set('TK_ROOT_DIR', '/usr') # update for cmake - env.set('TKHOME', '/usr') diff --git a/data/products/CAS.pyconf b/data/products/CAS.pyconf deleted file mode 100644 index c19c9da..0000000 --- a/data/products/CAS.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -CAS : -{ - name : "CAS" - build_source : "autotools" - configure_options : "-without-tcl --without-tk --disable-draw --with-freetype=$FREETYPEDIR --enable-debug=no --enable-production=yes --with-gl2ps=$GL2PSDIR --with-freeimage=$FREEIMAGEDIR" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['freetype', 'freeimage', 'gl2ps', 'tcl', 'tk'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/Cython.pyconf b/data/products/Cython.pyconf deleted file mode 100644 index 67547f3..0000000 --- a/data/products/Cython.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -Cython : -{ - name : "Cython" - build_source : "script" - compil_script : "cython.sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/GEOM.pyconf b/data/products/GEOM.pyconf deleted file mode 100644 index 37f7918..0000000 --- a/data/products/GEOM.pyconf +++ /dev/null @@ -1,38 +0,0 @@ -GEOM : -{ - name : "GEOM" - build_source : "cmake" - get_source : "git" - git_info: - { - repo : "http://git.salome-platform.org/gitpub/modules/geom.git" - repo_dev : $SITE.prepare.default_git_server_dev + $VARS.sep + $name - } - environ : - { - } - depend : ["KERNEL", - "GUI", - "boost", - "CAS", - "Python", - "swig", - "hdf5", - "omniORB", - "qt", - "ParaView", - "doxygen", - "graphviz", - "docutils", - "Sphinx", - "Jinja2", - "setuptools", - "Pygments", - "cppunit", - "opencv", - "six", - "pytz"] - type : "salome" - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name -} diff --git a/data/products/GUI.pyconf b/data/products/GUI.pyconf deleted file mode 100644 index 129501e..0000000 --- a/data/products/GUI.pyconf +++ /dev/null @@ -1,37 +0,0 @@ -GUI : -{ - name : "GUI" - build_source : "cmake" - get_source : "git" - git_info: - { - repo : "http://git.salome-platform.org/gitpub/modules/gui.git" - repo_dev : $SITE.prepare.default_git_server_dev + $VARS.sep + $name - } - environ : - { - } - depend : ["KERNEL", - "Python", - "qt", - "sip", - "PyQt", - "boost", - "swig", - "CAS", - "qwt", - "hdf5", - "freetype", - "freeimage", - "gl2ps", - "ParaView", - "omniORB", - "doxygen", - "graphviz", - "docutils", - "libxml2", - "cppunit"] - type : "salome" - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name -} diff --git a/data/products/Homard.pyconf b/data/products/Homard.pyconf deleted file mode 100644 index bbd3563..0000000 --- a/data/products/Homard.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -Homard : -{ - name : "Homard" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : [] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/Jinja2.pyconf b/data/products/Jinja2.pyconf deleted file mode 100644 index bd5d752..0000000 --- a/data/products/Jinja2.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -Jinja2 : -{ - name : "Jinja2" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python', 'setuptools', 'markupsafe'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/KERNEL.pyconf b/data/products/KERNEL.pyconf deleted file mode 100644 index 2814b9e..0000000 --- a/data/products/KERNEL.pyconf +++ /dev/null @@ -1,36 +0,0 @@ -KERNEL : -{ - name : "KERNEL" - build_source : "cmake" - get_source : "git" - git_info: - { - repo : "http://git.salome-platform.org/gitpub/modules/kernel.git" - repo_dev : $SITE.prepare.default_git_server_dev + $VARS.sep + $name - } - environ : - { - } - depend : ["Python", - "boost", - "swig", - "numpy", - "lapack", - "hdf5", - "omniORB", - "omniORBpy", - "graphviz", - "docutils", - "doxygen", - "libxml2", - "Sphinx", - "Jinja2", - "setuptools", - "Pygments", - "cppunit", - "pytz"] - opt_depend : ["LIBBATCH"] - type : "salome" - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name -} diff --git a/data/products/LIBBATCH.pyconf b/data/products/LIBBATCH.pyconf deleted file mode 100644 index 6b6e337..0000000 --- a/data/products/LIBBATCH.pyconf +++ /dev/null @@ -1,18 +0,0 @@ -LIBBATCH : -{ - name : "LIBBATCH" - build_source : "cmake" - get_source : "git" - git_info: - { - repo : "http://git.salome-platform.org/gitpub/tools/libbatch.git" - repo_dev : "ssh://gitolite3@git.salome-platform.org/tools/libbatch.git" - } - environ : - { - } - depend : ["cmake", "Python", "swig", "cppunit"] - type : "salome" - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name -} \ No newline at end of file diff --git a/data/products/MEDCOUPLING.pyconf b/data/products/MEDCOUPLING.pyconf deleted file mode 100644 index e4a84aa..0000000 --- a/data/products/MEDCOUPLING.pyconf +++ /dev/null @@ -1,57 +0,0 @@ -MEDCOUPLING : -{ - name : "MEDCOUPLING" - build_source : "cmake" - cmake_options : "-DMEDCOUPLING_PARTITIONER_METIS=OFF -DMEDCOUPLING_PARTITIONER_SCOTCH=OFF" - get_source : "git" - git_info: - { - repo : "http://git.salome-platform.org/gitpub/tools/medcoupling.git" - repo_dev : $SITE.prepare.default_git_server_dev + $VARS.sep + $name - } - environ : - { - MEDCOUPLING_ROOT_DIR : $install_dir - _LD_LIBRARY_PATH : - [ - '${MEDCOUPLING_ROOT_DIR}' + $VARS.sep + 'lib' - ] - _PYTHONPATH : - [ - '${MEDCOUPLING_ROOT_DIR}' + $VARS.sep + 'lib' + $VARS.sep + 'python2.7' + $VARS.sep + 'site-packages' - '${MEDCOUPLING_ROOT_DIR}' + $VARS.sep + 'bin' - ] - _PATH : - [ - '${MEDCOUPLING_ROOT_DIR}' + $VARS.sep + 'bin' - ] - } - depend : [ - "boost", - "CAS", - "Python", - "swig", - "hdf5", - "med", - "scotch", - "omniORB", - "qt", - "ParaView", - "doxygen", - "graphviz", - "metis", - "docutils", - "libxml2", - "cppunit", - "Sphinx", - "setuptools", - "six", - "pytz", - "numpy", - "scipy", - "lapack" - ] - type : "salome" - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name -} diff --git a/data/products/MeshGems.pyconf b/data/products/MeshGems.pyconf deleted file mode 100644 index 1da5ad0..0000000 --- a/data/products/MeshGems.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -MeshGems : -{ - name : "MeshGems" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : [] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/PRODUCT_ARCHIVE.pyconf b/data/products/PRODUCT_ARCHIVE.pyconf deleted file mode 100644 index 7727102..0000000 --- a/data/products/PRODUCT_ARCHIVE.pyconf +++ /dev/null @@ -1,53 +0,0 @@ -PRODUCT_ARCHIVE : -{ - name : "PRODUCT_ARCHIVE" - build_source : "cmake" - get_source : "native" - archive_info: - { - archive_name : $VARS.salometoolsway + $VARS.sep + '..' + $VARS.sep + 'RESOURCES' + $VARS.sep + 'test-product-4.4.2.tar.gz' - } - environ : - { - } - depend : [] - opt_depend : [] - type : "sample" - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - patches : ['/home/salome/salomeTools-4.3.7/data/compil_scripts/patches/scipy.patch', '/export/home/serioja/MODULE_ARCHIVE.patch'] -} - -PRODUCT_ARCHIVE_4_4_2 : -{ - name : "PRODUCT_ARCHIVE" - build_source : "cmake" - get_source : "archive" - archive_info: - { - archive_name : $VARS.salometoolsway + $VARS.sep + '..' + $VARS.sep + 'RESOURCES' + $VARS.sep + 'test-product-4.4.2.tar.gz' - } - environ : - { - env_script : "/home/sr755891/SAT-ETENDU/00-DEV/RESOURCES/env_scripts/pytz.py" - build: - { - "_LD_LIBRARY_PATH" : "COUCOU" - "_PYTHONPATH" : ["TEST" + $VARS.sep + "lib" - "TEST" + $VARS.sep + "${PYTHON_LIBDIR0}" - "TEST" + $VARS.sep + "${PYTHON_LIBDIR1}"] - } - } - present_files : - { - source : ['my_test_file.txt', 'my_test_file.txt~'] - install : [] - } - depend : ['PRODUCT_NATIVE'] - opt_depend : [] - type : "sample" - has_gui : "yes" - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - patches : [] -} \ No newline at end of file diff --git a/data/products/PRODUCT_CVS.pyconf b/data/products/PRODUCT_CVS.pyconf deleted file mode 100644 index c64d4e2..0000000 --- a/data/products/PRODUCT_CVS.pyconf +++ /dev/null @@ -1,29 +0,0 @@ -PRODUCT_CVS_V6_7_0 : -{ - name : "PRODUCT_CVS" - build_source : "autotools" - get_source : "cvs" - git_info: - { - repo : "http://git.salome-platform.org/gitpub/modules/kernel.git" - repo_dev : $SITE.prepare.default_git_server_dev + $VARS.sep + $name - } - archive_info: - { - archive_name : '' - } - cvs_info: - { - server : "cvs.opencascade.com" - product_base : "/home/server/cvs/KERNEL" - source : 'KERNEL_SRC' - } - environ : - { - } - depend : ["PRODUCT_DEV"] - opt_depend : [] - type : "sample" - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name -} \ No newline at end of file diff --git a/data/products/PRODUCT_DEFAULTVERSION.pyconf b/data/products/PRODUCT_DEFAULTVERSION.pyconf deleted file mode 100644 index 55910a8..0000000 --- a/data/products/PRODUCT_DEFAULTVERSION.pyconf +++ /dev/null @@ -1,30 +0,0 @@ -MODULE_DEFAULTVERSION : -{ - name : "MODULE_DEFAULTVERSION" - build_source : "cmake" - get_source : "git" - git_info: - { - repo : "http://git.salome-platform.org/gitpub/modules/kernel.git" - repo_dev : $SITE.prepare.default_git_server_dev + $VARS.sep + $name - } - archive_info: - { - archive_name : '' - } - cvs_info: - { - server : "cvs.opencascade.com" - module_base : "/home/server/cvs/KERNEL" - source : 'KERNEL_SRC' - } - environ : - { - - } - depend : [] - opt_depend : [] - type : "sample" - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name -} \ No newline at end of file diff --git a/data/products/PRODUCT_DEV.pyconf b/data/products/PRODUCT_DEV.pyconf deleted file mode 100644 index 46c2afe..0000000 --- a/data/products/PRODUCT_DEV.pyconf +++ /dev/null @@ -1,21 +0,0 @@ -PRODUCT_DEV : -{ - name : "PRODUCT_DEV" - build_source : "cmake" - get_source : "git" - git_info: - { - repo : $VARS.salometoolsway + $VARS.sep + '..' + $VARS.sep + 'RESOURCES' + $VARS.sep + 'test-product.git' - repo_dev : $repo - } - environ : - { - - } - depend : [] - opt_depend : [] - type : "sample" - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - patches : [$VARS.salometoolsway + $VARS.sep + '..' + $VARS.sep + 'RESOURCES' + $VARS.sep + 'mypatch.patch'] -} \ No newline at end of file diff --git a/data/products/PRODUCT_FIXED.pyconf b/data/products/PRODUCT_FIXED.pyconf deleted file mode 100644 index e107d45..0000000 --- a/data/products/PRODUCT_FIXED.pyconf +++ /dev/null @@ -1,10 +0,0 @@ -PRODUCT_FIXED : -{ - name : "PRODUCT_FIXED" - get_source : "fixed" - environ : - { - - } - type : "sample" -} \ No newline at end of file diff --git a/data/products/PRODUCT_GIT.pyconf b/data/products/PRODUCT_GIT.pyconf deleted file mode 100644 index f9753a9..0000000 --- a/data/products/PRODUCT_GIT.pyconf +++ /dev/null @@ -1,23 +0,0 @@ -PRODUCT_GIT : -{ - name : "PRODUCT_GIT" - build_source : "cmake" - get_source : "git" - git_info: - { - repo : $VARS.salometoolsway + $VARS.sep + '..' + $VARS.sep + 'RESOURCES' + $VARS.sep + 'test-product.git' - repo_dev : $repo - } - environ : - { - build : {"ONLY_FOR_BUILD" : "HELLO"} - } - depend : ["PRODUCT_ARCHIVE", "PRODUCT_NATIVE"] - opt_depend : [] - type : "salome" - has_gui : "yes" - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : "base" - patches : [] -} \ No newline at end of file diff --git a/data/products/PRODUCT_NATIVE.pyconf b/data/products/PRODUCT_NATIVE.pyconf deleted file mode 100644 index 77c9c92..0000000 --- a/data/products/PRODUCT_NATIVE.pyconf +++ /dev/null @@ -1,28 +0,0 @@ -MODULE_NATIVE : -{ - name : "MODULE_NATIVE" - build_source : "cmake" - get_source : "native" - git_info: - { - repo : "http://git.salome-platform.org/gitpub/modules/kernel.git" - repo_dev : $SITE.prepare.default_git_server_dev + $VARS.sep + $name - } - archive_info: - { - archive_name : '/data/tmpsalome/salome/prerequis/archives/tclx8.4.tar.bz2' - } - svn_info: - { - repo: 'https://www-svn-corpus.cea.fr/corpus/CORPUS' - } - environ : - { - - } - depend : [] - opt_depend : [] - type : "sample" - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name -} \ No newline at end of file diff --git a/data/products/PRODUCT_SVN.pyconf b/data/products/PRODUCT_SVN.pyconf deleted file mode 100644 index fe7c9b8..0000000 --- a/data/products/PRODUCT_SVN.pyconf +++ /dev/null @@ -1,28 +0,0 @@ -PRODUCT_SVN : -{ - name : "PRODUCT_SVN" - build_source : "cmake" - get_source : "svn" - git_info: - { - repo : "http://git.salome-platform.org/gitpub/modules/kernel.git" - repo_dev : $SITE.prepare.default_git_server_dev + $VARS.sep + $name - } - archive_info: - { - archive_name : '/data/tmpsalome/salome/prerequis/archives/tclx8.4.tar.bz2' - } - svn_info: - { - repo: 'https://www-svn-corpus.cea.fr/corpus/CORPUS' - } - environ : - { - - } - depend : [] - opt_depend : [] - type : "sample" - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name -} \ No newline at end of file diff --git a/data/products/PRODUCT_UNKNOWN.pyconf b/data/products/PRODUCT_UNKNOWN.pyconf deleted file mode 100644 index 85c8eca..0000000 --- a/data/products/PRODUCT_UNKNOWN.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -PRODUCT_UNKNOWN : -{ - name : "PRODUCT_UNKNOWN" - build_source : "cmake" - get_source : "unknown" - environ : - { - - } - depend : [] - opt_depend : [] - type : "sample" - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name -} \ No newline at end of file diff --git a/data/products/ParMetis.pyconf b/data/products/ParMetis.pyconf deleted file mode 100644 index 57f82e8..0000000 --- a/data/products/ParMetis.pyconf +++ /dev/null @@ -1,16 +0,0 @@ -ParMetis_3_1_1 : -{ - name : "ParMetis" - build_source : "script" - compil_script : $name + "-3.sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : [] - opt_depend : ["openmpi"] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/PyQt.pyconf b/data/products/PyQt.pyconf deleted file mode 100644 index aceaac8..0000000 --- a/data/products/PyQt.pyconf +++ /dev/null @@ -1,18 +0,0 @@ -PyQt : -{ - name : "PyQt" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python', 'qt', 'sip'] - patches : [ - $VARS.datadir + $VARS.sep + "patches" + $VARS.sep + "patchPyQt496noPhonon.patch" - ] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/Pygments.pyconf b/data/products/Pygments.pyconf deleted file mode 100644 index 2dc0ab0..0000000 --- a/data/products/Pygments.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -Pygments : -{ - name : "Pygments" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ["Python", "setuptools"] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/Python.pyconf b/data/products/Python.pyconf deleted file mode 100644 index a504604..0000000 --- a/data/products/Python.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -Python : -{ - name : "Python" - build_source : "script" - compil_script : "Python.sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : [] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} diff --git a/data/products/SALOME_PROFILE.pyconf b/data/products/SALOME_PROFILE.pyconf deleted file mode 100644 index 63e34da..0000000 --- a/data/products/SALOME_PROFILE.pyconf +++ /dev/null @@ -1,19 +0,0 @@ -SALOME_PROFILE : -{ - name : "SALOME_PROFILE" - build_source : "cmake" - get_source : "git" - git_info: - { - repo : "/home/salome/GitRepo/" + $name + ".git" - repo_dev : $repo - } - environ : - { - } - depend : ["KERNEL", "GUI", "Python", "Sphinx", "qt"] - patches : [$VARS.datadir + $VARS.sep + "patches" + $VARS.sep + "SALOME_PROFILE_NO_ENV.patch"] - type : "salome" - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name -} diff --git a/data/products/SMESH.pyconf b/data/products/SMESH.pyconf deleted file mode 100644 index 3ab13d0..0000000 --- a/data/products/SMESH.pyconf +++ /dev/null @@ -1,46 +0,0 @@ -SMESH : -{ - name : "SMESH" - build_source : "cmake" - cmake_options : "-DSALOME_SMESH_USE_CGNS:BOOL=ON" - get_source : "git" - git_info: - { - repo : "http://git.salome-platform.org/gitpub/modules/smesh.git" - repo_dev : $SITE.prepare.default_git_server_dev + $VARS.sep + $name - } - environ : - { - } - depend : ["KERNEL", - "GUI", - "GEOM", - "MEDCOUPLING", - "Python", - "qt", - "PyQt", - "boost", - "swig", - "CAS", - "hdf5", - "med", - "qwt", - "ParaView", - "libxml2", - "omniORB", - "doxygen", - "graphviz", - "docutils", - "Sphinx", - "Jinja2", - "setuptools", - "Pygments", - "cppunit", - "cgns", - "six", - "pytz" - ] - type : "salome" - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name -} diff --git a/data/products/Sphinx.pyconf b/data/products/Sphinx.pyconf deleted file mode 100644 index cff3bf2..0000000 --- a/data/products/Sphinx.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -Sphinx : -{ - name : "Sphinx" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ["Python", "setuptools", "Pygments", "Jinja2", "docutils"] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/boost.pyconf b/data/products/boost.pyconf deleted file mode 100644 index 6f0763e..0000000 --- a/data/products/boost.pyconf +++ /dev/null @@ -1,16 +0,0 @@ -boost : -{ - name : "boost" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python' ] - opt_depend : ['openmpi' ] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/cgns.pyconf b/data/products/cgns.pyconf deleted file mode 100644 index 8b20f8c..0000000 --- a/data/products/cgns.pyconf +++ /dev/null @@ -1,16 +0,0 @@ -cgns : -{ - name : "cgns" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ["hdf5", "cmake"] - opt_depend : ["openmpi"] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/cmake.pyconf b/data/products/cmake.pyconf deleted file mode 100644 index 548536c..0000000 --- a/data/products/cmake.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -cmake : -{ - name : "cmake" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : [] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} diff --git a/data/products/cppunit.pyconf b/data/products/cppunit.pyconf deleted file mode 100644 index ca13725..0000000 --- a/data/products/cppunit.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -cppunit : -{ - name : "cppunit" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : [] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/dateutil.pyconf b/data/products/dateutil.pyconf deleted file mode 100644 index dca1a20..0000000 --- a/data/products/dateutil.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -dateutil : -{ - name : "dateutil" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python', 'setuptools', 'six'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} diff --git a/data/products/distribute.pyconf b/data/products/distribute.pyconf deleted file mode 100644 index ec8b41d..0000000 --- a/data/products/distribute.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -distribute : -{ - name : "distribute" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/docutils.pyconf b/data/products/docutils.pyconf deleted file mode 100644 index 7ca1db1..0000000 --- a/data/products/docutils.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -docutils : -{ - name : "docutils" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ["Python", "setuptools"] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/doxygen.pyconf b/data/products/doxygen.pyconf deleted file mode 100644 index 90f5d16..0000000 --- a/data/products/doxygen.pyconf +++ /dev/null @@ -1,18 +0,0 @@ -doxygen_1_8_3_1 : -{ - name : "doxygen" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ["graphviz"] - patches : [ - $VARS.datadir + $VARS.sep + "patches" + $VARS.sep + $name + "-1.8.3.1.patch" - ] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/fftw.pyconf b/data/products/fftw.pyconf deleted file mode 100644 index 242e720..0000000 --- a/data/products/fftw.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -fftw : -{ - name : "fftw" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : [] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/freeimage.pyconf b/data/products/freeimage.pyconf deleted file mode 100644 index 52f3209..0000000 --- a/data/products/freeimage.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -freeimage_3_16_0 : -{ - name : "freeimage" - build_source : "script" - compil_script : $name + "-3.16.0.sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : [] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/freetype.pyconf b/data/products/freetype.pyconf deleted file mode 100644 index ba97440..0000000 --- a/data/products/freetype.pyconf +++ /dev/null @@ -1,20 +0,0 @@ -freetype_2_4_11 : -{ - name : "freetype" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - archive_info: - { - archive_name : $SITE.prepare.archive_dir + $name + "-2.4.11.tar.gz" - } - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : [] - patches : [$VARS.datadir + $VARS.sep + "patches" + $VARS.sep + $name + "-2.4.11_ft_export_FD20.patch" ] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/gl2ps.pyconf b/data/products/gl2ps.pyconf deleted file mode 100644 index bab810e..0000000 --- a/data/products/gl2ps.pyconf +++ /dev/null @@ -1,22 +0,0 @@ -gl2ps_1_3_8 : -{ - name : "gl2ps" - build_source : "cmake" - cmake_options : "-DCMAKE_BUILD_TYPE=Release -DENABLE_ZLIB=OFF -DENABLE_PNG=OFF" - get_source : "archive" - archive_info: - { - archive_name : $SITE.prepare.archive_dir + $name + "-1.3.8.tar.gz" - } - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ["cmake"] - patches : [ - $VARS.datadir + $VARS.sep + "patches" + $VARS.sep + $name + "-1.3.8_link_libm_FD20.patch" - ] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/graphviz.pyconf b/data/products/graphviz.pyconf deleted file mode 100644 index 3c570db..0000000 --- a/data/products/graphviz.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -graphviz_2_38_0 : -{ - name : "graphviz" - build_source : "script" - compil_script : $name + "-2.38.0.sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ["tcl", "tk"] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/hdf5.pyconf b/data/products/hdf5.pyconf deleted file mode 100644 index f86eaef..0000000 --- a/data/products/hdf5.pyconf +++ /dev/null @@ -1,16 +0,0 @@ -hdf5 : -{ - name : "hdf5" - build_source : "script" - compil_script : $name + "CMake.sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['cmake'] - opt_depend : [ 'openmpi'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/lapack.pyconf b/data/products/lapack.pyconf deleted file mode 100644 index 6902150..0000000 --- a/data/products/lapack.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -lapack : -{ - name : "lapack" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python', 'cmake'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} diff --git a/data/products/libxml2.pyconf b/data/products/libxml2.pyconf deleted file mode 100644 index 2b9ea5c..0000000 --- a/data/products/libxml2.pyconf +++ /dev/null @@ -1,18 +0,0 @@ -libxml2_2_9_0 : -{ - name : "libxml2" - build_source : "script" - compil_script : $name + "_2_9_2.sh" - get_source : "archive" - archive_info: - { - } - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python' ] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/markupsafe.pyconf b/data/products/markupsafe.pyconf deleted file mode 100644 index b3372e8..0000000 --- a/data/products/markupsafe.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -markupsafe : -{ - name : "markupsafe" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python', 'setuptools'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/matplotlib.pyconf b/data/products/matplotlib.pyconf deleted file mode 100644 index 55d3d9c..0000000 --- a/data/products/matplotlib.pyconf +++ /dev/null @@ -1,23 +0,0 @@ -matplotlib_1_4_3 : -{ - name : "matplotlib" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - archive_info: - { - archive_name : $SITE.prepare.archive_dir + $name + "-1.4.3.tar.gz" - } - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python', 'numpy', 'freetype', 'six', 'pytz', 'distribute', 'pyparsing', 'dateutil'] - patches : [ - $VARS.datadir + $VARS.sep + "patches" + $VARS.sep + $name + "_1_4_3_patch_freetype_detection_for_SAT.patch" - $VARS.datadir + $VARS.sep + "patches" + $VARS.sep + $name + "-1.4.3_no_auto_download.patch" - ] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/med.pyconf b/data/products/med.pyconf deleted file mode 100644 index 0cbd430..0000000 --- a/data/products/med.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -med : -{ - name : "med" - build_source : "script" - compil_script : $name + "CMake.sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ["hdf5", "cmake"] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/metis.pyconf b/data/products/metis.pyconf deleted file mode 100644 index 7c83ea8..0000000 --- a/data/products/metis.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -metis : -{ - name : "metis" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : [] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/netgen.pyconf b/data/products/netgen.pyconf deleted file mode 100644 index 43dd80f..0000000 --- a/data/products/netgen.pyconf +++ /dev/null @@ -1,23 +0,0 @@ -netgen_4_9_13 : -{ - name : "netgen" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - archive_info: - { - archive_name : $SITE.prepare.archive_dir + $name + "-4.9.13.tar.gz" - } - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['CAS', 'tcl', 'tk', "freetype"] - patches : [ - $VARS.datadir + $VARS.sep + "patches" + $VARS.sep + $name + "49ForSalome.patch" - $VARS.datadir + $VARS.sep + "patches" + $VARS.sep + $name + "-4.9.13_without_togl.patch" - ] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/numpy.pyconf b/data/products/numpy.pyconf deleted file mode 100644 index dfb175d..0000000 --- a/data/products/numpy.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -numpy : -{ - name : "numpy" - build_source : "script" - compil_script : "numpy.sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ["Python"] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} diff --git a/data/products/omniORB.pyconf b/data/products/omniORB.pyconf deleted file mode 100644 index 855efbf..0000000 --- a/data/products/omniORB.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -omniORB : -{ - name : "omniORB" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/omniORBpy.pyconf b/data/products/omniORBpy.pyconf deleted file mode 100644 index a342439..0000000 --- a/data/products/omniORBpy.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -omniORBpy : -{ - name : "omniORBpy" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['omniORB', 'Python' ] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/opencv.pyconf b/data/products/opencv.pyconf deleted file mode 100644 index aceef96..0000000 --- a/data/products/opencv.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -opencv : -{ - name : "opencv" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ["Python", "Sphinx", "cmake", "numpy"] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/paraview.pyconf b/data/products/paraview.pyconf deleted file mode 100644 index e3b1265..0000000 --- a/data/products/paraview.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -ParaView_5_0_1p1 : -{ - name : "ParaView" - build_source : "script" - compil_script : $name + "-5.0.sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['cmake', 'Python', 'hdf5', 'qt', 'boost', 'gl2ps', 'libxml2', 'freetype', 'matplotlib'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/pyparsing.pyconf b/data/products/pyparsing.pyconf deleted file mode 100644 index 3731761..0000000 --- a/data/products/pyparsing.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -pyparsing : -{ - name : "pyparsing" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} diff --git a/data/products/pyreadline.pyconf b/data/products/pyreadline.pyconf deleted file mode 100644 index c5bfbb9..0000000 --- a/data/products/pyreadline.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -pyreadline : -{ - name : "pyreadline" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} diff --git a/data/products/pytz.pyconf b/data/products/pytz.pyconf deleted file mode 100644 index 905b973..0000000 --- a/data/products/pytz.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -pytz : -{ - name : "pytz" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/qt.pyconf b/data/products/qt.pyconf deleted file mode 100644 index 0e60d87..0000000 --- a/data/products/qt.pyconf +++ /dev/null @@ -1,18 +0,0 @@ -qt_4_8_4 : -{ - name : "qt" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : [] - patches : [ - $VARS.datadir + $VARS.sep + "patches" + $VARS.sep + $name + "-4.8.4-enable-webkit-compilation-whith-gcc5.patch" - ] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/qwt.pyconf b/data/products/qwt.pyconf deleted file mode 100644 index bd06bc3..0000000 --- a/data/products/qwt.pyconf +++ /dev/null @@ -1,19 +0,0 @@ -qwt_6_1_0 : -{ - name : "qwt" - build_source : "script" - compil_script : $name + "-6.1.0.sh" - get_source : "archive" - archive_info: - { - archive_name : $SITE.prepare.archive_dir + $name + "-6.1.0.tar.bz2" - } - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['qt'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/scipy.pyconf b/data/products/scipy.pyconf deleted file mode 100644 index 5158ab3..0000000 --- a/data/products/scipy.pyconf +++ /dev/null @@ -1,16 +0,0 @@ -scipy_0_15_1 : -{ - name : "scipy" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python','numpy','lapack', 'cmake'] - patches : [ $VARS.datadir + $VARS.sep + "patches" + $VARS.sep + "scipy-0.14.1.patch" ] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} diff --git a/data/products/scotch.pyconf b/data/products/scotch.pyconf deleted file mode 100644 index f76caba..0000000 --- a/data/products/scotch.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -scotch_5_1_12b : -{ - name : "scotch" - build_source : "script" - compil_script : $name + "-5.1.12.sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : [] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/setuptools.pyconf b/data/products/setuptools.pyconf deleted file mode 100644 index 7a19ecc..0000000 --- a/data/products/setuptools.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -setuptools : -{ - name : "setuptools" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} diff --git a/data/products/sip.pyconf b/data/products/sip.pyconf deleted file mode 100644 index a5bb9b9..0000000 --- a/data/products/sip.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -sip : -{ - name : "sip" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python', 'qt'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/six.pyconf b/data/products/six.pyconf deleted file mode 100644 index 2ea5a7b..0000000 --- a/data/products/six.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -six : -{ - name : "six" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ['Python'] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/softA.pyconf b/data/products/softA.pyconf deleted file mode 100644 index aa758ef..0000000 --- a/data/products/softA.pyconf +++ /dev/null @@ -1,27 +0,0 @@ -softA : -{ - name : "softA" - build_source : "cmake" # ou autotools, ou script - get_source : "git" # "archive", embedded", "native" "fixed" - cvs_info: - { - server : $SITE.prepare.default_cvs_server - module_base : $SITE.prepare.cvs_dir + $name - source : 'softA_SRC' - } - git_info: - { - repo : $SITE.prepare.default_git_server + $VARS.sep + $name - repo_dev : $SITE.prepare.default_git_server_dev + $VARS.sep + $name - } - archive_info: - { - archive_name : $SITE.prepare.archive_dir + $VARS.sep + $name + '.tar.gz' - } - environ : - { - - } - depend : [] - opt_depend : [] -} \ No newline at end of file diff --git a/data/products/softB.pyconf b/data/products/softB.pyconf deleted file mode 100644 index 38c8032..0000000 --- a/data/products/softB.pyconf +++ /dev/null @@ -1,27 +0,0 @@ -softB : -{ - name : "softB" - build_source : "cmake" # ou autotools, ou script - get_source : "git" # "archive", embedded", "native" "fixed" - cvs_info: - { - server : $SITE.prepare.default_cvs_server - module_base : $SITE.prepare.cvs_dir + $name - source : 'softB_SRC' - } - git_info: - { - repo : $SITE.prepare.default_git_server + $VARS.sep + $name - repo_dev : $SITE.prepare.default_git_server_dev + $VARS.sep + $name - } - archive_info: - { - archive_name : $SITE.prepare.archive_dir + $VARS.sep + $name + '.tar.gz' - } - environ : - { - - } - depend : ['softA'] - opt_depend : [] -} \ No newline at end of file diff --git a/data/products/swig.pyconf b/data/products/swig.pyconf deleted file mode 100644 index 975bff9..0000000 --- a/data/products/swig.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -swig : -{ - name : "swig" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : [] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/tcl.pyconf b/data/products/tcl.pyconf deleted file mode 100644 index fadb746..0000000 --- a/data/products/tcl.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -tcl : -{ - name : "tcl" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : [] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/products/tk.pyconf b/data/products/tk.pyconf deleted file mode 100644 index c508dfc..0000000 --- a/data/products/tk.pyconf +++ /dev/null @@ -1,15 +0,0 @@ -tk : -{ - name : "tk" - build_source : "script" - compil_script : $name + ".sh" - get_source : "archive" - environ : - { - env_script : $VARS.datadir + $VARS.sep + "env_scripts" + $VARS.sep + $name + ".py" - } - depend : ["tcl"] - source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name - build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name - install_dir : 'base' -} \ No newline at end of file diff --git a/data/site.pyconf b/data/site.pyconf index e0bac12..9cd2137 100644 --- a/data/site.pyconf +++ b/data/site.pyconf @@ -3,19 +3,6 @@ SITE : { - config : - { - config_path : ["/home/salome/SPN_PRIVATE/sat5dev_Applications"] - copy_prefix : "LOCAL_" - } - prepare : - { - default_git_server : "http://default.git" - default_git_server_dev : "http://default_dev.git" - archive_dir : "/data/tmpsalome/salome/prerequis/archives/" - cvs_dir : "/test" - default_cvs_server : "http://default.cvs" - } log : { log_dir : $USER.workdir + "/LOGS" @@ -26,3 +13,7 @@ SITE : } } +PROJECTS : +{ +project_file_paths : ["/home/salome/SPN_PRIVATE/SAT5/SALOME-PROJECT/salome.pyconf"] +} diff --git a/salomeTools.py b/salomeTools.py index 6bf491e..55a5a5c 100755 --- a/salomeTools.py +++ b/salomeTools.py @@ -215,6 +215,8 @@ class Sat(object): # is a file path that can be written if self.options.logs_paths_in_file: try: + self.options.logs_paths_in_file = os.path.abspath( + self.options.logs_paths_in_file) dir_file = os.path.dirname(self.options.logs_paths_in_file) if not os.path.exists(dir_file): os.makedirs(dir_file) diff --git a/src/__init__.py b/src/__init__.py index 3a39375..e492bb9 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -249,6 +249,29 @@ class Path: except: return False +def find_file_in_lpath(file_name, lpath, additional_dir = ""): + """Find in all the directories in lpath list the file that has the same name + as file_name. If it is found, return the full path of the file, else, + return False. + The additional_dir (optional) is the name of the directory to add to all + paths in lpath. + + :param file_name str: The file name to search + :param lpath List: The list of directories where to search + :param additional_dir str: The name of the additional directory + :return: the full path of the file or False if not found + :rtype: str + """ + for directory in lpath: + dir_complete = os.path.join(directory, additional_dir) + if not os.path.isdir(directory) or not os.path.isdir(dir_complete): + continue + l_files = os.listdir(dir_complete) + for file_n in l_files: + if file_n == file_name: + return os.path.join(dir_complete, file_name) + return False + def handleRemoveReadonly(func, path, exc): excvalue = exc[1] if func in (os.rmdir, os.remove) and excvalue.errno == errno.EACCES: diff --git a/src/internal_config/salomeTools.pyconf b/src/internal_config/salomeTools.pyconf index 2ce0c00..831216b 100644 --- a/src/internal_config/salomeTools.pyconf +++ b/src/internal_config/salomeTools.pyconf @@ -4,14 +4,14 @@ INTERNAL : { sat_version : "5.0.0dev" + config : + { + copy_prefix : "LOCAL_" + } log : { not_shown_commands : ["log"] } - compile : - { - default_script_dir : $VARS.datadir + $VARS.sep + "compil_scripts" - } } PRODUCTS : { diff --git a/src/product.py b/src/product.py index d19a5e5..f70a60b 100644 --- a/src/product.py +++ b/src/product.py @@ -66,49 +66,51 @@ def get_product_config(config, product_name): # in config.PRODUCTS. This is done because the pyconf tool does not handle # the . and - characters for c in ".-": vv = vv.replace(c, "_") - full_product_name = product_name + '_' + vv - - prod_info = None - # If it exists, get the information of the product_version - if full_product_name in config.PRODUCTS: - # returns specific information for the given version - prod_info = config.PRODUCTS[full_product_name] - # Get the standard informations - elif product_name in config.PRODUCTS: - # returns the generic information (given version not found) - prod_info = config.PRODUCTS[product_name] - # merge opt_depend in depend - if prod_info is not None and 'opt_depend' in prod_info: - for depend in prod_info.opt_depend: - if depend in config.PRODUCTS: - prod_info.depend.append(depend,'') - - # In case of a product get with a vcs, put the tag (equal to the version) - if prod_info is not None and prod_info.get_source in AVAILABLE_VCS: + prod_info = None + if product_name in config.PRODUCTS: + # If it exists, get the information of the product_version + if "version_" + vv in config.PRODUCTS[product_name]: + # returns specific information for the given version + prod_info = config.PRODUCTS[product_name]["version_" + vv] + # Get the standard informations + elif "default" in config.PRODUCTS[product_name]: + # returns the generic information (given version not found) + prod_info = config.PRODUCTS[product_name].default - if prod_info.get_source == 'git': - prod_info.git_info.tag = version + # merge opt_depend in depend + if prod_info is not None and 'opt_depend' in prod_info: + for depend in prod_info.opt_depend: + if depend in config.PRODUCTS: + prod_info.depend.append(depend,'') - if prod_info.get_source == 'svn': - prod_info.svn_info.tag = version + # In case of a product get with a vcs, + # put the tag (equal to the version) + if prod_info is not None and prod_info.get_source in AVAILABLE_VCS: + + if prod_info.get_source == 'git': + prod_info.git_info.tag = version + + if prod_info.get_source == 'svn': + prod_info.svn_info.tag = version + + if prod_info.get_source == 'cvs': + prod_info.cvs_info.tag = version - if prod_info.get_source == 'cvs': - prod_info.cvs_info.tag = version - - # In case of a fixed product, define the install_dir (equal to the version) - if prod_info is not None and prod_info.get_source=="fixed": - prod_info.install_dir = version - - # Check if the product is defined as native in the application - if prod_info is not None: - if version == "native": - prod_info.get_source = "native" - elif prod_info.get_source == "native": - msg = _("The product %(prod)s has version %(ver)s but is declared" - " as native in its definition" % - { 'prod': prod_info.name, 'ver': version}) - raise src.SatException(msg) + # In case of a fixed product, + # define the install_dir (equal to the version) + if prod_info is not None and prod_info.get_source=="fixed": + prod_info.install_dir = version + + # Check if the product is defined as native in the application + if prod_info is not None: + if version == "native": + prod_info.get_source = "native" + elif prod_info.get_source == "native": + msg = _("The product %(prod)s has version %(ver)s but is " + "declared as native in its definition" % + { 'prod': prod_info.name, 'ver': version}) + raise src.SatException(msg) # If there is no definition but the product is declared as native, # construct a new definition containing only the get_source key @@ -135,10 +137,19 @@ def get_product_config(config, product_name): prod_info.addMapping("archive_info", src.pyconf.Mapping(prod_info), "") - if "archive_name" not in prod_info.archive_info: - arch_name = os.path.join(config.SITE.prepare.archive_dir, - product_name + "-" + version + ".tar.gz") - prod_info.archive_info.archive_name = arch_name + if ("archive_name" not in prod_info.archive_info or + os.path.basename(prod_info.archive_info.archive_name) == + prod_info.archive_info.archive_name): + arch_name = product_name + "-" + version + ".tar.gz" + arch_path = src.find_file_in_lpath(arch_name, + config.PATHS.ARCHIVEPATH) + if not arch_path: + msg = _("Archive %(arch_name)s for %(prod_name)s not found:" + "\n" % {"arch_name" : arch_name, + "prod_name" : prod_info.name}) + raise src.SatException(msg) + + prod_info.archive_info.archive_name = arch_path # Set the install_dir key if "install_dir" not in prod_info: @@ -168,8 +179,9 @@ def get_product_config(config, product_name): script_name = os.path.basename(script) if script == script_name: # Only a name is given. Search in the default directory - script_path = os.path.join( - config.INTERNAL.compile.default_script_dir, script_name) + script_path = src.find_file_in_lpath(script_name, + config.PATHS.PRODUCTPATH, + "compil_scripts") prod_info.compil_script = script_path # Check script existence @@ -182,7 +194,45 @@ def get_product_config(config, product_name): raise src.SatException( _("Compilation script cannot be executed: %s") % prod_info.compil_script) - + + # Get the full paths of all the patches + if "patches" in prod_info: + patches = [] + for patch in prod_info.patches: + patch_path = patch + # If only a filename, then search for the patch in the PRODUCTPATH + if os.path.basename(patch_path) == patch_path: + # Search in the PRODUCTPATH/patches + patch_path = src.find_file_in_lpath(patch, + config.PATHS.PRODUCTPATH, + "patches") + if not patch_path: + msg = _("Patch %(patch_name)s for %(prod_name)s not found:" + "\n" % {"patch_name" : patch, + "prod_name" : prod_info.name}) + raise src.SatException(msg) + patches.append(patch_path) + prod_info.patches = patches + + # Get the full paths of the environment scripts + if "environ" in prod_info and "env_script" in prod_info.environ: + env_script_path = prod_info.environ.env_script + # If only a filename, then search for the environment script + # in the PRODUCTPATH/env_scripts + if os.path.basename(env_script_path) == env_script_path: + # Search in the PRODUCTPATH/env_scripts + env_script_path = src.find_file_in_lpath( + prod_info.environ.env_script, + config.PATHS.PRODUCTPATH, + "env_scripts") + if not env_script_path: + msg = _("Environment script %(env_name)s for %(prod_name)s not " + "found.\n" % {"env_name" : env_script_path, + "prod_name" : prod_info.name}) + raise src.SatException(msg) + + prod_info.environ.env_script = env_script_path + return prod_info def get_products_infos(lproducts, config): diff --git a/test/compilation/test_compilation.py b/test/compilation/test_compilation.py index 5514d50..6544aeb 100644 --- a/test/compilation/test_compilation.py +++ b/test/compilation/test_compilation.py @@ -36,7 +36,7 @@ class TestCompile(unittest.TestCase): ''' def test_compile(self): - '''Test the configure command with --products option + '''Test the compile command with --products option ''' OK = 'KO' diff --git a/test/config/create_user_pyconf.py b/test/config/create_user_pyconf.py index bae7ef8..9af5706 100644 --- a/test/config/create_user_pyconf.py +++ b/test/config/create_user_pyconf.py @@ -95,10 +95,10 @@ class TestConfig(unittest.TestCase): OK = "KO" # The command to test - sat = Sat("-oSITE.prepare.default_git_server='testgit'") + sat = Sat("-oSITE.jobs.config_path='/tmp'") sat.config() - if sat.cfg.SITE.prepare.default_git_server == 'testgit': + if sat.cfg.SITE.jobs.config_path == '/tmp': OK = "OK" # pyunit method to compare 2 str @@ -125,10 +125,10 @@ class TestConfig(unittest.TestCase): OK = "KO" # The command to test - sat = Sat("-oPRODUCTS.softA.name='test'") + sat = Sat("-oPRODUCTS.PRODUCT_GIT.default.name='test'") sat.config('') - if sat.cfg.PRODUCTS.softA.name == 'test': + if sat.cfg.PRODUCTS.PRODUCT_GIT.default.name == 'test': OK = "OK" # pyunit method to compare 2 str diff --git a/test/job/test_job.py b/test/job/test_job.py index f7fb66a..e00d833 100644 --- a/test/job/test_job.py +++ b/test/job/test_job.py @@ -42,7 +42,7 @@ class TestJob(unittest.TestCase): sat = Sat("-l " + tmp_file) # Execute the job command - sat.job("--jobs_config .test --job Job 1" ) + sat.job("--jobs_config .test --name Job 1" ) ff = open(tmp_file, "r") log_files = ff.readlines() @@ -67,7 +67,7 @@ class TestJob(unittest.TestCase): sat = Sat("-l " + tmp_file) # Execute the job command - res = sat.job("--jobs_config .test --job Job 4" ) + res = sat.job("--jobs_config .test --name Job 4" ) if res == 1: OK = 'OK' @@ -83,7 +83,7 @@ class TestJob(unittest.TestCase): sat = Sat("-l " + tmp_file) # Execute the job command - res = sat.job("--jobs_config NOTEXIST --job Job 4" ) + res = sat.job("--jobs_config NOTEXIST --name Job 4" ) if res == 1: OK = 'OK' @@ -99,7 +99,7 @@ class TestJob(unittest.TestCase): sat = Sat("-l " + tmp_file) # Execute the job command - res = sat.job("--job Job 4" ) + res = sat.job("--name Job 4" ) if res == 1: OK = 'OK' @@ -115,7 +115,7 @@ class TestJob(unittest.TestCase): sat = Sat("-l " + tmp_file) # Execute the job command - res = sat.job("--jobs_config .test --job NOTEXIST" ) + res = sat.job("--jobs_config .test --name NOTEXIST" ) if res == 1: OK = 'OK' diff --git a/test/prepare/test_patch.py b/test/prepare/test_patch.py index 5da0fb2..09d8466 100644 --- a/test/prepare/test_patch.py +++ b/test/prepare/test_patch.py @@ -151,7 +151,7 @@ class TestPatch(unittest.TestCase): appli = 'appli-test' product_name = 'PRODUCT_DEV' - sat = Sat("-oPRODUCTS.PRODUCT_DEV.patches=['/']") + sat = Sat("-oPRODUCTS.PRODUCT_DEV.default.patches=['/']") sat.source(appli + ' --product ' + product_name) -- 2.39.2