Try to fix a weired error we are getting on Jenkins
I cannot reproduce the error in any way here, so just blindly try this
This commit is contained in:
parent
08170d1fd4
commit
01105db325
3
setup.py
3
setup.py
|
@ -157,6 +157,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
|
||||||
if USE_CYTHON:
|
if USE_CYTHON:
|
||||||
# check if cython is installed
|
# check if cython is installed
|
||||||
try:
|
try:
|
||||||
|
from Cython.Distutils import build_ext
|
||||||
from Cython.Build import cythonize
|
from Cython.Build import cythonize
|
||||||
import Cython.Compiler.Options
|
import Cython.Compiler.Options
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
@ -182,6 +183,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
|
||||||
Cython.Compiler.Options.docstrings = True
|
Cython.Compiler.Options.docstrings = True
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
from distutils.command.build_ext import build_ext
|
||||||
sys.stdout.write("not needed, using pre-generated C files\n")
|
sys.stdout.write("not needed, using pre-generated C files\n")
|
||||||
module_suffix = ".c"
|
module_suffix = ".c"
|
||||||
|
|
||||||
|
@ -437,6 +439,7 @@ setup(
|
||||||
'Topic :: Software Development :: Widget Sets',
|
'Topic :: Software Development :: Widget Sets',
|
||||||
],
|
],
|
||||||
cmdclass={
|
cmdclass={
|
||||||
|
'build_ext': build_ext,
|
||||||
'build_doc': BuildDoc,
|
'build_doc': BuildDoc,
|
||||||
'clean_generated_files': CleanGenerated
|
'clean_generated_files': CleanGenerated
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue