maybe import customize_compiler from new distutils
This commit is contained in:
parent
347b28f69d
commit
82ced70a33
@ -644,7 +644,11 @@ def gecode_version():
|
||||
global GECODE_VERSION
|
||||
if GECODE_VERSION is not None:
|
||||
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
|
||||
cxx = new_compiler()
|
||||
customize_compiler(cxx)
|
||||
|
Reference in New Issue
Block a user