Skip to content

Commit c9383c2

Browse files
committed
unix: properly record OS name in PYTHON.json for macOS
1 parent a1b8e68 commit c9383c2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cpython-unix/build.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,10 +596,17 @@ def build_cpython(
596596
"d" if debug else "",
597597
)
598598

599+
if platform == "linux64":
600+
os_name = "linux"
601+
elif platform == "macos":
602+
os_name = "macos"
603+
else:
604+
raise ValueError("unhandled platform: %s" % platform)
605+
599606
# Create PYTHON.json file describing this distribution.
600607
python_info = {
601608
"version": "3",
602-
"os": "linux",
609+
"os": os_name,
603610
"arch": "x86_64",
604611
"python_flavor": "cpython",
605612
"python_version": entry["version"],

0 commit comments

Comments
 (0)