for_package = binaries_dir_name)
# Little hack to put out_dir_Path outside the strings
- src.replace_in_file(filepath, 'r"out_dir_Path', 'out_dir_Path + r"' )
- src.replace_in_file(filepath, "r'out_dir_Path + ", "out_dir_Path + r'" )
+ if src.architecture.is_windows():
+ src.replace_in_file(filepath, '=out_dir_Path', '=%out_dir_Path%' )
+ src.replace_in_file(filepath, ';out_dir_Path', ';%out_dir_Path%' )
+ src.replace_in_file(filepath, 'out_dir_Path;', '%out_dir_Path%;' )
+ src.replace_in_file(filepath, 'r"out_dir_Path', '%out_dir_Path% + r"' )
+ src.replace_in_file(filepath, "r'out_dir_Path + ", "%out_dir_Path% + r'" )
+ else:
+ src.replace_in_file(filepath, 'r"out_dir_Path', 'out_dir_Path + r"' )
+ src.replace_in_file(filepath, "r'out_dir_Path + ", "out_dir_Path + r'" )
# A hack to put a call to a file for distene licence.
# It does nothing to an application that has no distene product
# Little hack to put out_dir_Path as environment variable
if src.architecture.is_windows() :
src.replace_in_file(filepath, '"out_dir_Path', '"%out_dir_Path%' )
+ src.replace_in_file(filepath, '=out_dir_Path', '=%out_dir_Path%' )
else:
src.replace_in_file(filepath, '"out_dir_Path', '"${out_dir_Path}' )
1)
# construct the name of the directory that will contain the binaries
- binaries_dir_name = config.INTERNAL.config.binary_dir + config.VARS.dist
-
+ if src.architecture.is_windows():
+ binaries_dir_name = config.INTERNAL.config.binary_dir
+ else:
+ binaries_dir_name = config.INTERNAL.config.binary_dir + config.VARS.dist
# construct the correlation table between the product names, there
# actual install directories and there install directory in archive
d_products = {}
SALOME (the directory where this file is located).
"""
+ if src.architecture.is_windows():
+ readme_header = readme_header.replace('$$ROOT','%ROOT%')
readme_compilation_with_binaries="""
compilation based on the binaries used as prerequisites
if options.binaries or options.sources:
d['application'] = config.VARS.application
+ d['BINARIES'] = config.INTERNAL.config.install_dir
+ d['SEPARATOR'] = config.VARS.sep
+ if src.architecture.is_windows():
+ d['operatingSystem'] = 'Windows'
+ d['PYTHON3'] = 'python3'
+ d['ROOT'] = '%ROOT%'
+ else:
+ d['operatingSystem'] = 'Linux'
+ d['PYTHON3'] = ''
+ d['ROOT'] = '$ROOT'
f.write("# Application: " + d['application'] + "\n")
if 'KERNEL' in config.APPLICATION.products:
VersionSalome = src.get_salome_version(config)
To run the application, launch the following command:
-> $ROOT/¤{launcher}
+> ¤{PYTHON3} ¤{ROOT}¤{SEPARATOR}¤{launcher}
-Note for the use of Salome on a remote computer through ssh:
- When salome is used on a remote machine, the use of openGL 3 is not compatible with X11 forwarding (ssh -X).
+Note for the use of SALOME on a remote computer through ssh:
+ When SALOME is used on a remote machine, the use of openGL 3 is not compatible with X11 forwarding (ssh -X).
This cause segmentation faults when the 3D viewers are used.
- For people who have no other choice and need to use ssh, we provide a mesa laucher called $ROOT/mesa_¤{launcher}.
+ For people who have no other choice and need to use ssh, we provide a MESA launcher called ¤{ROOT}¤{SEPARATOR}mesa_¤{launcher}.
It will avoid the segmentation faults, at the price of poor performance : it should only be used in this case!
If performance is required, a solution based on the use of VirtualGL and TurboVNC/x2go would be recommended.
- But this requires some configuration of the tools to be done as root.
+ But this requires some configuration of the tools to be done as system administrator.