diff options
author | Armin Rigo <arigo@tunes.org> | 2012-06-18 12:16:24 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2012-06-18 12:16:24 +0200 |
commit | a4387fc66670801102b12f0e6d21e75404ed4fb2 (patch) | |
tree | 8e0483881215fa43d095ac6294155008ba07f293 | |
parent | 0d8914c08a1019c416017c05cf9ea76d0db1acdf (diff) | |
download | cffi-a4387fc66670801102b12f0e6d21e75404ed4fb2.tar.gz |
A clear error message for Win32.
-rw-r--r-- | setup_base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/setup_base.py b/setup_base.py index d4262af..85f8ac3 100644 --- a/setup_base.py +++ b/setup_base.py @@ -12,6 +12,10 @@ else: 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) |