Skip to content

Commit 966bf46

Browse files
committed
Add hexversion and .pyw extension
1 parent d06d1bc commit 966bf46

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

PC/layout/support/builddetails.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,15 @@
3535
"releaselevel": _LEVELS.get(constants.VER_FIELD4 & 0xF0, "final"),
3636
"serial": constants.VER_FIELD4 & 0x0F,
3737
},
38+
"hexversion": constants.VER_HEXVERSION,
3839
},
3940
"abi": {
4041
"flags": [],
4142
"extension_suffix": ".pyd",
4243
"stable_abi_suffix": ".pyd",
4344
},
4445
"suffixes": {
45-
"source": [".py"],
46+
"source": [".py", ".pyw"],
4647
"bytecode": [".pyc"],
4748
"extensions": [".pyd"],
4849
},

PC/layout/support/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def check_patchlevel_version(sources):
7676

7777

7878
VER_MAJOR, VER_MINOR, VER_MICRO, VER_FIELD4 = _unpack_hexversion()
79+
VER_HEXVERSION = (VER_MAJOR << 24) | (VER_MINOR << 16) | (VER_MICRO << 8) | (VER_FIELD4)
7980
VER_SUFFIX = _get_suffix(VER_FIELD4)
8081
VER_FIELD3 = VER_MICRO << 8 | VER_FIELD4
8182
VER_DOT = "{}.{}".format(VER_MAJOR, VER_MINOR)

0 commit comments

Comments
 (0)