diff options
author | AraHaan <15173749+AraHaan@users.noreply.github.com> | 2019-03-23 16:29:49 (GMT) |
---|---|---|
committer | Cheryl Sabella <cheryl.sabella@gmail.com> | 2019-03-23 16:29:49 (GMT) |
commit | a7987e71939fa631296f83861fb376361ddd59ee (patch) | |
tree | 2c81e0870505da66b4924a2fdb781e1fdbfe4ef7 /Tools | |
parent | d3c72a223a5f771f964fc34557c55eb5bfa0f5a0 (diff) | |
download | cpython-a7987e71939fa631296f83861fb376361ddd59ee.zip cpython-a7987e71939fa631296f83861fb376361ddd59ee.tar.gz cpython-a7987e71939fa631296f83861fb376361ddd59ee.tar.bz2 |
bpo-32217: Correct usage of ABI tags in freeze. (GH-4719)
Check for sys.abiflags before using since not all platforms have it defined.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/freeze/freeze.py | 5 |
1 files changed, 4 insertions, 1 deletions
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: |