Skip to content

Commit f2c183e

Browse files
committed
windows: add CLI argument to control which Python is built
This allows us to attempt a build with Python 3.8. This fails spectacularly. But it is a start.
1 parent 9765c4d commit f2c183e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cpython-windows/build.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,6 +1855,12 @@ def main():
18551855
BUILD.mkdir(exist_ok=True)
18561856

18571857
parser = argparse.ArgumentParser()
1858+
parser.add_argument(
1859+
"--python",
1860+
choices={"cpython-3.7", "cpython-3.8"},
1861+
default="cpython-3.7",
1862+
help="Python distribution to build",
1863+
)
18581864
parser.add_argument(
18591865
"--profile",
18601866
choices={"static", "shared", "shared-pgo"},
@@ -1881,7 +1887,7 @@ def main():
18811887
build_openssl(perl_path, arch, profile=args.profile)
18821888

18831889
LOG_PREFIX[0] = "cpython"
1884-
tar_path = build_cpython("cpython-3.7", arch, profile=args.profile)
1890+
tar_path = build_cpython(args.python, arch, profile=args.profile)
18851891

18861892
compress_python_archive(
18871893
tar_path, DIST, "%s-%s" % (tar_path.stem, now.strftime("%Y%m%dT%H%M")),

0 commit comments

Comments
 (0)