BUG: Build fixes for Windows 7, Python 2.6 [patch by Amit Aides].

This commit is contained in:
Stefan van der Walt
2010-11-23 17:07:31 +02:00
parent ff02f4ce9d
commit 5df119117f
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -9,6 +9,6 @@ recursive-include scikits/image/data *
include doc/Makefile
recursive-include doc/source *.txt
recursive-include doc/tools *.txt
recursive-include doc/source/_templates/ *.html
recursive-include doc/source/_templates *.html
recursive-include doc *.py
prune doc/build
+2 -1
View File
@@ -27,7 +27,8 @@ def cython(pyx_files, working_path=''):
# run cython compiler
cmd = 'cython -o %s %s' % (c_file_new, pyxfile)
print cmd
status = subprocess.call(['cython', '-o', c_file_new, pyxfile])
status = subprocess.call(['cython', '-o', c_file_new, pyxfile],
shell=True)
# if the resulting file is small, cython compilation failed
if status != 0 or os.path.getsize(c_file_new) < 100:
print "Cython compilation of %s failed. Falling back " \