Fix #2130 (Use canonical method to invoke sip-build tool)

This commit is contained in:
Kovid Goyal 2023-12-03 20:41:24 +05:30
parent c6783b7037
commit 76ec0583df
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -721,8 +721,7 @@ sip-file = {os.path.basename(sipf)!r}
self.create_sip_build_skeleton(src_dir, ext) self.create_sip_build_skeleton(src_dir, ext)
cwd = src_dir cwd = src_dir
cmd = [ cmd = [
sys.executable, '-c', sys.executable, '-m', 'sipbuild.tools.build',
'''from sipbuild.tools.build import main; main();''',
'--verbose', '--no-make', '--qmake', QMAKE '--verbose', '--no-make', '--qmake', QMAKE
] ]
return cmd, sbf, cwd return cmd, sbf, cwd