Mercurial > cpython-lru_cache-weakref
diff setup.py @ 37537:5bc2b4e3ffc1 legacy-trunk
Don't try to build ctypes when configuration of libffi fails.
| author | Thomas Heller <theller@ctypes.org> |
|---|---|
| date | Fri, 07 Apr 2006 19:27:56 +0000 |
| parents | 9bed30df7a4a |
| children | 3959810bc549 |
line wrap: on
line diff
--- a/setup.py Fri Apr 07 19:04:09 2006 +0000 +++ b/setup.py Fri Apr 07 19:27:56 2006 +0000 @@ -181,7 +181,8 @@ def build_extension(self, ext): if ext.name == '_ctypes': - self.configure_ctypes(ext) + if not self.configure_ctypes(ext): + return try: build_ext.build_extension(self, ext) @@ -1287,7 +1288,7 @@ res = os.system(cmd) if res or not os.path.exists(ffi_configfile): print "Failed to configure _ctypes module" - return + return False fficonfig = {} execfile(ffi_configfile, globals(), fficonfig) @@ -1303,6 +1304,7 @@ ext.sources.extend(fficonfig['ffi_sources']) ext.include_dirs.extend(include_dirs) ext.extra_compile_args.extend(extra_compile_args) + return True def detect_ctypes(self): include_dirs = []
