summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Misc/NEWS.d/next/Tools-Demos/2017-12-19-20-42-36.bpo-32217.axXcjA.rst1
-rwxr-xr-xTools/freeze/freeze.py5
2 files changed, 5 insertions, 1 deletions
diff --git a/Misc/NEWS.d/next/Tools-Demos/2017-12-19-20-42-36.bpo-32217.axXcjA.rst b/Misc/NEWS.d/next/Tools-Demos/2017-12-19-20-42-36.bpo-32217.axXcjA.rst
new file mode 100644
index 0000000..67feb9e
--- /dev/null
+++ b/Misc/NEWS.d/next/Tools-Demos/2017-12-19-20-42-36.bpo-32217.axXcjA.rst
@@ -0,0 +1 @@
+Fix freeze script on Windows.
diff --git a/Tools/freeze/freeze.py b/Tools/freeze/freeze.py
index 08d09e7..3ab56fd 100755
--- a/Tools/freeze/freeze.py
+++ b/Tools/freeze/freeze.py
@@ -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: