Skip to content

Commit

Permalink
bpo-32217: Correct usage of ABI tags in freeze. (GH-4719)
Browse files Browse the repository at this point in the history
Check for sys.abiflags before using since not all platforms have it defined.
  • Loading branch information
AraHaan authored and csabella committed Mar 23, 2019
1 parent d3c72a2 commit a7987e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix freeze script on Windows.
5 changes: 4 additions & 1 deletion Tools/freeze/freeze.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a7987e7

Please sign in to comment.