Permalink
Browse files

Fix __builtin__ import for python3 at top setup.py.

  • Loading branch information...
1 parent 541798c commit 2b517694e894ac6853f85899e5603758caf13c68 @cournape cournape committed Dec 3, 2009
Showing with 6 additions and 2 deletions.
  1. +6 −2 setup.py
View
@@ -15,12 +15,16 @@
DOCLINES = __doc__.split("\n")
-import __builtin__
import os
import sys
import re
import subprocess
+if sys.version_info[0] < 3:
+ import __builtin__ as builtins
+else:
+ import builtins
+
CLASSIFIERS = """\
Development Status :: 5 - Production/Stable
Intended Audience :: Science/Research
@@ -96,7 +100,7 @@ def _minimal_ext_cmd(cmd):
# numpy __init__ can detect if it is being loaded by the setup routine, to
# avoid attempting to load components that aren't built yet. While ugly, it's
# a lot more robust than what was previously being used.
-__builtin__.__NUMPY_SETUP__ = True
+builtins.__NUMPY_SETUP__ = True
FULLVERSION = VERSION
if not ISRELEASED:

0 comments on commit 2b51769

Please sign in to comment.