mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-24 13:20:43 +08:00
BUG: Build fixes for Windows 7, Python 2.6 [patch by Amit Aides].
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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 " \
|
||||
|
||||
Reference in New Issue
Block a user