[pypy-commit] cffi default: A clear error message for Win32.
arigo
noreply at buildbot.pypy.org
Mon Jun 18 12:16:37 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r434:05aaded152be
Date: 2012-06-18 12:16 +0200
http://bitbucket.org/cffi/cffi/changeset/05aaded152be/
Log: A clear error message for Win32.
diff --git a/setup_base.py b/setup_base.py
--- a/setup_base.py
+++ b/setup_base.py
@@ -12,6 +12,10 @@
COMPILE_LIBFFI = None
if COMPILE_LIBFFI:
+ assert os.path.isdir(COMPILE_LIBFFI), (
+ "On Windows, you need to copy the directory "
+ "Modules\\_ctypes\\libffi_msvc from the CPython sources (2.6 or 2.7) "
+ "into the top-level directory.")
include_dirs.append(COMPILE_LIBFFI)
libraries.remove('ffi')
sources.extend(os.path.join(COMPILE_LIBFFI, filename)
More information about the pypy-commit
mailing list