diff options
author | Eike Ziller <eike.ziller@theqtcompany.com> | 2015-09-16 17:28:21 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@theqtcompany.com> | 2015-10-21 09:15:47 +0000 |
commit | 0fa5369760be49cfbd4c5d0e3959a90e39591fe7 (patch) | |
tree | 5179bc8cd863f2d42190fed0e8d3a64de706fe8b /packaging-tools/bld_module.py | |
parent | 8dfc2d801f9568d924396470b0c205a287c8bf41 (diff) |
bld_module: Remove unused code paths
- the targetPath was not actually used in these places
- we don't use the installer framework for patching on OS X anymore, so
we don't need to fetch it
- INSTALLER_ARCHIVE is a leftover from copying from the Qt Creator
build, here we archive manually without the need for that environment
variable
- keychain unlock script and SIGNING_IDENTITY are leftovers from the Qt
Creator build
Change-Id: Ida678d4192b3a5f97233e68fa7b2b78b56f97d22
Reviewed-by: Antti Kokko <antti.kokko@theqtcompany.com>
Diffstat (limited to 'packaging-tools/bld_module.py')
-rwxr-xr-x | packaging-tools/bld_module.py | 38 |
1 files changed, 4 insertions, 34 deletions
diff --git a/packaging-tools/bld_module.py b/packaging-tools/bld_module.py index 71cea10d8..f33bac6ab 100755 --- a/packaging-tools/bld_module.py +++ b/packaging-tools/bld_module.py @@ -161,11 +161,9 @@ elif sys.platform == "darwin": "--qt5_essentials7z <uri to qt5_essentials.7z> " \ "--qt5_addons7z <uri to qt5_addons.7z> " \ "--qt5_webengine7z <uri to qt5_webengine.7z> " \ - "--installerbase7z <uri into installer base>" \ "--module_url <url into module repository>" \ "--module_branch <module branch>" \ "--module_dir <Local copy of module>" \ - "--keychain_unlock_script $HOME/unlock-keychain.sh" \ "".format(os.path.basename(sys.argv[0])) else: parser.epilog = "example: " + os.linesep + "\tpython {0} --clean " \ @@ -197,9 +195,6 @@ parser.add_argument('--collectDocs', help="Should the docs be collected for this if (sys.platform != "darwin"): parser.add_argument('--icu7z', help="a file or url where it get icu libs as 7z", required=False, default='') -if sys.platform == "darwin": - parser.add_argument('--installerbase7z', help="a file or url where it get installerbase binary as 7z") - parser.add_argument('--keychain_unlock_script', help="script for unlocking the keychain used for signing") callerArguments = parser.parse_args() # cleanup some values inside the callerArguments object @@ -246,13 +241,6 @@ if os.name == 'nt': qtModuleInstallDirectory = qtModuleInstallDirectory.replace('\\','/').replace('/', '\\', 1) -### check mac setup -if sys.platform == "darwin": - if callerArguments.keychain_unlock_script: - if not os.environ['SIGNING_IDENTITY']: - print('error: Environment variable SIGNING_IDENTITY not set') - sys.exit(1) - ### clean step if callerArguments.clean: print("##### {0} #####".format("clean old builds")) @@ -279,36 +267,20 @@ if not os.path.lexists(callerArguments.qt5path): myGetQtBinaryWork.addTaskObject( bldinstallercommon.create_download_extract_task(callerArguments.qt5_addons7z, callerArguments.qt5path, tempPath, callerArguments)) - if os.name == 'nt': - targetPath = os.path.join(callerArguments.qt5path, 'bin') - else: - targetPath = os.path.join(callerArguments.qt5path, 'lib') - ### add get Qt webengine task if callerArguments.qt5_webengine7z: myGetQtBinaryWork.addTaskObject( bldinstallercommon.create_download_extract_task(callerArguments.qt5_webengine7z, callerArguments.qt5path, tempPath, callerArguments)) + ### add get icu lib task + if not bldinstallercommon.is_mac_platform() and callerArguments.icu7z: if os.name == 'nt': targetPath = os.path.join(callerArguments.qt5path, 'bin') else: targetPath = os.path.join(callerArguments.qt5path, 'lib') - - ### add get icu lib task - if not bldinstallercommon.is_mac_platform(): - if callerArguments.icu7z: - if os.name == 'nt': - targetPath = os.path.join(callerArguments.qt5path, 'bin') - else: - targetPath = os.path.join(callerArguments.qt5path, 'lib') - - if not sys.platform == "darwin": - myGetQtBinaryWork.addTaskObject( - bldinstallercommon.create_download_extract_task(callerArguments.icu7z, targetPath, tempPath, callerArguments)) - - if sys.platform == "darwin": myGetQtBinaryWork.addTaskObject( - bldinstallercommon.create_download_extract_task(callerArguments.installerbase7z, tempPath, tempPath, callerArguments)) + bldinstallercommon.create_download_extract_task(callerArguments.icu7z, targetPath, tempPath, callerArguments)) + ### run get Qt 5 tasks myGetQtBinaryWork.run() @@ -338,8 +310,6 @@ pathKeyList.append(pythonExecutablePath) environment = {'PATH': os.pathsep.join(pathKeyList)} -environment["INSTALLER_ARCHIVE"] = os.environ['MODULE_NAME'] + '.7z' - if sys.platform.startswith('linux'): environment["LD_LIBRARY_PATH"] = os.pathsep.join([os.path.join(callerArguments.qt5path, 'lib')] + os.environ.get("LD_LIBRARY_PATH", "").split(os.pathsep)) |