]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
ajout d'un fichier internal config spécifique à windows
authorcrouzet <nicolas.crouzet@cea.fr>
Fri, 8 Nov 2019 09:21:17 +0000 (10:21 +0100)
committercrouzet <nicolas.crouzet@cea.fr>
Fri, 8 Nov 2019 09:21:17 +0000 (10:21 +0100)
commands/config.py
src/internal_config/salomeTools_win.pyconf [new file with mode: 0644]

index 0e1c1a3f70ce3deebb738973cf82e619c278ba4e..c089074dc8fec98974bbd2959041db698cde0fd6 100644 (file)
@@ -261,8 +261,12 @@ class ConfigManager:
         src.pyconf.streamOpener = ConfigOpener([
                              osJoin(cfg.VARS.srcDir, 'internal_config')])
         try:
-            internal_cfg = src.pyconf.Config(open( osJoin(cfg.VARS.srcDir,
-                                    'internal_config', 'salomeTools.pyconf')))
+            if src.architecture.is_windows(): # special internal config for windows
+                internal_cfg = src.pyconf.Config(open( osJoin(cfg.VARS.srcDir,
+                                        'internal_config', 'salomeTools_win.pyconf')))
+            else:
+                internal_cfg = src.pyconf.Config(open( osJoin(cfg.VARS.srcDir,
+                                        'internal_config', 'salomeTools.pyconf')))
         except src.pyconf.ConfigError as e:
             raise src.SatException(_("Error in configuration file:"
                                      " salomeTools.pyconf\n  %(error)s") % \
diff --git a/src/internal_config/salomeTools_win.pyconf b/src/internal_config/salomeTools_win.pyconf
new file mode 100644 (file)
index 0000000..340a569
--- /dev/null
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+#-*- coding:utf-8 -*-
+
+INTERNAL :
+{   
+    sat_version : "5.3.0"
+    config :
+    {    
+        copy_prefix : "LOCAL_"
+        install_dir : "W64"
+        binary_dir : "BIN-"
+        single_install_dir : "EXT"
+    }
+    log :
+    {
+       not_shown_commands : ["log"]
+    }
+    command :
+    {
+        pip_download : "python -m pip download --disable-pip-version-check"
+        pip_install : "python -m pip install --disable-pip-version-check --no-index"
+    }
+}
+PRODUCTS :
+{
+}