maybe import customize_compiler from new distutils

This commit is contained in:
Denys Duchier 2012-04-16 22:02:53 +02:00
parent 347b28f69d
commit 82ced70a33

View File

@ -644,7 +644,11 @@ def gecode_version():
global GECODE_VERSION global GECODE_VERSION
if GECODE_VERSION is not None: if GECODE_VERSION is not None:
return GECODE_VERSION return GECODE_VERSION
from distutils.ccompiler import new_compiler, customize_compiler from distutils.ccompiler import new_compiler
try:
from distutils.ccompiler import customize_compiler
except:
from distutils.sysconfig import customize_compiler
import os import os
cxx = new_compiler() cxx = new_compiler()
customize_compiler(cxx) customize_compiler(cxx)