From 0fba6e923344c7be351dd724dce8fcfa16dfdc84 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 21 Aug 2009 08:40:59 +0200 Subject: [PATCH] import Cython as late as possible --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.26.2