Fix build from pyx doesn't work.

This commit is contained in:
INADA Naoki 2012-08-21 14:56:32 +09:00
parent f74ce3caaa
commit 6aa4aead31

View file

@ -31,11 +31,11 @@ def ensure_source(src):
Cython is required for building extension from checkout. Cython is required for building extension from checkout.
Install Cython >= 0.16 or install msgpack from PyPI. Install Cython >= 0.16 or install msgpack from PyPI.
""") """)
cythonize(src) cythonize(pyx)
elif (os.path.exists(pyx) and elif (os.path.exists(pyx) and
os.stat(src).st_mtime < os.stat(pyx).st_mtime and os.stat(src).st_mtime < os.stat(pyx).st_mtime and
have_cython): have_cython):
cythonize(src) cythonize(pyx)
# Use C++ compiler on win32. # Use C++ compiler on win32.
# MSVC9 doesn't provide stdint.h when using C Compiler. # MSVC9 doesn't provide stdint.h when using C Compiler.