From: Benjamin Peterson Date: Wed, 21 Jan 2015 05:47:54 +0000 (-0500) Subject: detect 64-bit systems using maxsize not maxint X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e3c3c3f19761e35b6320d5ec883f7089e01e2b6;p=python detect 64-bit systems using maxsize not maxint --- diff --git a/setup.py b/setup.py index 7868b7b241..6a6ad239f1 100644 --- a/setup.py +++ b/setup.py @@ -696,7 +696,7 @@ class PyBuildExt(build_ext): exts.append( Extension('audioop', ['audioop.c']) ) # Disabled on 64-bit platforms - if sys.maxint != 9223372036854775807L: + if sys.maxsize != 9223372036854775807L: # Operations on images exts.append( Extension('imageop', ['imageop.c']) ) else: