Browse Source
bpo-38343: Fixes version handling for nuget packages (GH-16527)
pull/16531/head
Steve Dower
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
PC/layout/support/constants.py
|
|
|
@ -10,7 +10,7 @@ import sys |
|
|
|
|
|
|
|
VER_MAJOR, VER_MINOR, VER_MICRO, VER_FIELD4 = struct.pack(">i", sys.hexversion) |
|
|
|
VER_FIELD3 = VER_MICRO << 8 | VER_FIELD4 |
|
|
|
VER_NAME = {"alpha": "a", "beta": "b", "rc": "rc"}.get( |
|
|
|
VER_NAME = {"alpha": "a", "beta": "b", "candidate": "rc"}.get( |
|
|
|
sys.version_info.releaselevel, "" |
|
|
|
) |
|
|
|
VER_SERIAL = sys.version_info.serial if VER_NAME else "" |
|
|
|
|