Commit cd8428e9 authored by Stefan Behnel's avatar Stefan Behnel

Py3: fix import of Cython.Compiler.Version in setup.py

parent f89d8fe5
...@@ -150,9 +150,12 @@ class typedef(CythonType): ...@@ -150,9 +150,12 @@ class typedef(CythonType):
py_int = int
py_long = long
py_float = float py_float = float
py_int = int
try:
py_long = long
except NameError: # Py3
py_long = int
# Predefined types # Predefined types
......
# Void cython.* directives (for case insensitive operating systems). # Void cython.* directives (for case insensitive operating systems).
from Shadow import * from Cython.Shadow import *
...@@ -2,10 +2,7 @@ from distutils.core import setup, Extension ...@@ -2,10 +2,7 @@ from distutils.core import setup, Extension
from distutils.sysconfig import get_python_lib from distutils.sysconfig import get_python_lib
import os, os.path import os, os.path
import sys import sys
try: from Cython.Compiler.Version import version
from Cython.Compiler.Version import version
except ImportError:
version = None
compiler_dir = os.path.join(get_python_lib(prefix=''), 'Cython/Compiler') compiler_dir = os.path.join(get_python_lib(prefix=''), 'Cython/Compiler')
if sys.platform == "win32": if sys.platform == "win32":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment