diff options
author | Patrik Teivonen <patrik.teivonen@qt.io> | 2022-06-16 13:33:45 +0300 |
---|---|---|
committer | Patrik Teivonen <patrik.teivonen@qt.io> | 2022-07-11 09:31:06 +0000 |
commit | 8399adccfaf316ac8bd51f511a3e0cd8328aaa51 (patch) | |
tree | dc89968f89af0535f83af81e60d04e203183eae7 /packaging-tools/bld_openssl.py | |
parent | f1653086ad448000c46c01f7af8f742d1d5085a2 (diff) |
PEP8: Blank lines in function and class definitions, file end
Correct the amount of lines in function and class definitions as well as
at the end of the file. Enable following flake8 checks:
- E301 Expected 1 blank line, found 0
- E302 Expected 2 blank lines, found 0
- E303 Too many blank lines
- E305 Expected 2 blank lines after end of function or class
- E306 Expected 1 blank line before a nested definition
- W391 Blank line at end of file
Change-Id: Ia9bb511ded47df1f43bfffa4be00abfdbda60cae
Reviewed-by: Akseli Salovaara <akseli.salovaara@qt.io>
Diffstat (limited to 'packaging-tools/bld_openssl.py')
-rw-r--r-- | packaging-tools/bld_openssl.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packaging-tools/bld_openssl.py b/packaging-tools/bld_openssl.py index 9cdbfc2e2..ab3333a18 100644 --- a/packaging-tools/bld_openssl.py +++ b/packaging-tools/bld_openssl.py @@ -44,6 +44,7 @@ from runner import do_execute_sub_process ROOT_DIR = os.path.dirname(os.path.realpath(__file__)) + def build(src_dir, install_dir, toolset): do_execute_sub_process(['perl', 'Configure', toolset, '--openssldir=' + install_dir], src_dir, True) if toolset == 'VC-WIN32': @@ -53,13 +54,16 @@ def build(src_dir, install_dir, toolset): do_execute_sub_process(['nmake', '-f', 'ms\\ntdll.mak'], src_dir, True) do_execute_sub_process(['nmake', '-f', 'ms\\ntdll.mak', 'install'], src_dir, True) + def archive(install_dir, archive_prefix): (dir, name) = os.path.split(install_dir) do_execute_sub_process(['7z', 'a', archive_prefix + '.7z', name], dir, True) do_execute_sub_process(['7z', 'a', archive_prefix + '-runtime.7z', '*.dll'], os.path.join(install_dir, 'bin'), True) + def check_environment(): FNULL = open(os.devnull, 'w') + def check_cmd(cmd): if subprocess.call(cmd, stdout=FNULL, stderr=FNULL) != 0: print('*** Cannot execute {0}'.format(cmd[0])) @@ -80,6 +84,7 @@ def setup_argument_parser(): parser.add_argument('--archive_prefix', help='The start of the archive name to create', required=False, default=ROOT_DIR + '\\openssl') return parser + if __name__ == '__main__': if not platform.system().lower().startswith('win'): print('*** Only Windows builds are supported.') |