From: Stefan Behnel Date: Fri, 21 Aug 2009 06:40:59 +0000 (+0200) Subject: import Cython as late as possible X-Git-Tag: 0.12.alpha0~248 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0fba6e923344c7be351dd724dce8fcfa16dfdc84;p=cython.git import Cython as late as possible --- diff --git a/setup.py b/setup.py index fe69cdb2..1698c2fe 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,6 @@ from distutils.core import setup, Extension from distutils.sysconfig import get_python_lib import os, os.path import sys -from Cython.Compiler.Version import version compiler_dir = os.path.join(get_python_lib(prefix=''), 'Cython/Compiler') if sys.platform == "win32": @@ -95,6 +94,8 @@ except ValueError: print("Extension module compilation failed, using plain Python implementation") +from Cython.Compiler.Version import version + setup( name = 'Cython', version = version,