mirror of https://github.com/python/cpython.git
bpo-32217: Correct usage of ABI tags in freeze. (GH-4719)
Check for sys.abiflags before using since not all platforms have it defined.
This commit is contained in:
parent
d3c72a223a
commit
a7987e7193
|
@ -0,0 +1 @@
|
|||
Fix freeze script on Windows.
|
|
@ -217,7 +217,10 @@ def main():
|
|||
|
||||
# locations derived from options
|
||||
version = '%d.%d' % sys.version_info[:2]
|
||||
flagged_version = version + sys.abiflags
|
||||
if hasattr(sys, 'abiflags'):
|
||||
flagged_version = version + sys.abiflags
|
||||
else:
|
||||
flagged_version = version
|
||||
if win:
|
||||
extensions_c = 'frozen_extensions.c'
|
||||
if ishome:
|
||||
|
|
Loading…
Reference in New Issue