# HG changeset patch # User Matt Harbison # Date 1554520031 14400 # Node ID 57645939df597fb712dc7097d536c6ac0572f96b # Parent 9c07d345fd6da92c16ee0e809202efcfa3e5cbe9 packaging: ensure that --python is an absolute path when building on Windows For whatever reason, even though only python2 is on PATH, passing `python.exe` causes the later check that it's not py3 to bail out. diff -r 9c07d345fd6d -r 57645939df59 contrib/packaging/inno/build.py --- a/contrib/packaging/inno/build.py Fri Apr 05 22:47:45 2019 -0400 +++ b/contrib/packaging/inno/build.py Fri Apr 05 23:07:11 2019 -0400 @@ -30,6 +30,9 @@ args = parser.parse_args() + if not os.path.isabs(args.python): + raise Exception('--python arg must be an absolute path') + if args.iscc: iscc = pathlib.Path(args.iscc) else: diff -r 9c07d345fd6d -r 57645939df59 contrib/packaging/wix/build.py --- a/contrib/packaging/wix/build.py Fri Apr 05 22:47:45 2019 -0400 +++ b/contrib/packaging/wix/build.py Fri Apr 05 23:07:11 2019 -0400 @@ -62,6 +62,9 @@ 'version': args.version, } + if not os.path.isabs(args.python): + raise Exception('--python arg must be an absolute path') + if args.extra_packages_script: kwargs['extra_packages_script'] = args.extra_packages_script if args.extra_wxs: