summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-01-02 14:14:08 +0100
committerDave Andreoli <dave@gurumeditation.it>2015-01-02 14:14:08 +0100
commit01105db325644a38bcde05293ae73f5c2a5c9831 (patch)
tree2e184db88fd9f278c53cb50c8b42d5cbdb3335b4 /setup.py
parent08170d1fd42a57c24b47a853a1b1cc28de183828 (diff)
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
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 7fdc16a..e762f19 100755
--- a/setup.py
+++ b/setup.py
@@ -157,6 +157,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
157 if USE_CYTHON: 157 if USE_CYTHON:
158 # check if cython is installed 158 # check if cython is installed
159 try: 159 try:
160 from Cython.Distutils import build_ext
160 from Cython.Build import cythonize 161 from Cython.Build import cythonize
161 import Cython.Compiler.Options 162 import Cython.Compiler.Options
162 except ImportError: 163 except ImportError:
@@ -182,6 +183,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
182 Cython.Compiler.Options.docstrings = True 183 Cython.Compiler.Options.docstrings = True
183 184
184 else: 185 else:
186 from distutils.command.build_ext import build_ext
185 sys.stdout.write("not needed, using pre-generated C files\n") 187 sys.stdout.write("not needed, using pre-generated C files\n")
186 module_suffix = ".c" 188 module_suffix = ".c"
187 189
@@ -437,6 +439,7 @@ setup(
437 'Topic :: Software Development :: Widget Sets', 439 'Topic :: Software Development :: Widget Sets',
438 ], 440 ],
439 cmdclass={ 441 cmdclass={
442 'build_ext': build_ext,
440 'build_doc': BuildDoc, 443 'build_doc': BuildDoc,
441 'clean_generated_files': CleanGenerated 444 'clean_generated_files': CleanGenerated
442 }, 445 },