From: crouzet Date: Wed, 13 Nov 2019 13:42:11 +0000 (+0100) Subject: W64 package dirname for windows, bug fix X-Git-Tag: 5.5.0~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e45de9349c425e5c640a1710ac6f83b6f6ab64e8;p=tools%2Fsat.git W64 package dirname for windows, bug fix --- diff --git a/commands/package.py b/commands/package.py index 02a8e7d..03d1055 100644 --- a/commands/package.py +++ b/commands/package.py @@ -255,7 +255,7 @@ def produce_relative_launcher(config, # 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, "'out_dir_Path + ", "out_dir_Path + '" ) + 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 @@ -926,7 +926,7 @@ def make_archive(prod_name, prod_info, where): :return: The path of the resulting archive :rtype: str ''' - path_targz = os.path.join(dir_name, archive_name + PACKAGE_EXT) + path_targz_prod = os.path.join(where, prod_name + PACKAGE_EXT) tar_prod = tarfile.open(path_targz_prod, mode='w:gz') local_path = prod_info.source_dir tar_prod.add(local_path, diff --git a/src/architecture.py b/src/architecture.py index 0662509..662578e 100644 --- a/src/architecture.py +++ b/src/architecture.py @@ -44,9 +44,6 @@ def get_user(): import pwd return pwd.getpwuid(os.getuid())[0] -def get_windows_os_label(): - '''returns the SAT convention used for Windows labeling ''' - return "W" # in order to fulfill the 8196 length constraint! def get_distribution(codes): '''Gets the code for the distribution @@ -57,7 +54,7 @@ def get_distribution(codes): :rtype: str ''' if is_windows(): - return get_windows_os_label() + return "W" # else get linux distribution description from platform, and encode it with code lin_distrib = platform.dist()[0].lower() @@ -100,7 +97,7 @@ def get_distrib_version(distrib): ''' if is_windows(): - return platform.release() + return "64" # get version from platform dist_version=platform.dist()[1].split('.') diff --git a/src/internal_config/salomeTools_win.pyconf b/src/internal_config/salomeTools_win.pyconf index 340a569..7d9165f 100644 --- a/src/internal_config/salomeTools_win.pyconf +++ b/src/internal_config/salomeTools_win.pyconf @@ -8,7 +8,7 @@ INTERNAL : { copy_prefix : "LOCAL_" install_dir : "W64" - binary_dir : "BIN-" + binary_dir : "" single_install_dir : "EXT" } log :