summaryrefslogtreecommitdiff
path: root/setup_base.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2012-06-18 12:16:24 +0200
committerArmin Rigo <arigo@tunes.org>2012-06-18 12:16:24 +0200
commita4387fc66670801102b12f0e6d21e75404ed4fb2 (patch)
tree8e0483881215fa43d095ac6294155008ba07f293 /setup_base.py
parent0d8914c08a1019c416017c05cf9ea76d0db1acdf (diff)
downloadcffi-a4387fc66670801102b12f0e6d21e75404ed4fb2.tar.gz
A clear error message for Win32.
Diffstat (limited to 'setup_base.py')
-rw-r--r--setup_base.py4
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)