equal
deleted
inserted
replaced
318 if self.distribution.pure: |
318 if self.distribution.pure: |
319 self.distribution.ext_modules = [] |
319 self.distribution.ext_modules = [] |
320 elif self.distribution.cffi: |
320 elif self.distribution.cffi: |
321 exts = [] |
321 exts = [] |
322 # cffi modules go here |
322 # cffi modules go here |
|
323 if sys.platform == 'darwin': |
|
324 import setup_osutil_cffi |
|
325 exts.append(setup_osutil_cffi.ffi.distutils_extension()) |
323 self.distribution.ext_modules = exts |
326 self.distribution.ext_modules = exts |
324 else: |
327 else: |
325 h = os.path.join(get_python_inc(), 'Python.h') |
328 h = os.path.join(get_python_inc(), 'Python.h') |
326 if not os.path.exists(h): |
329 if not os.path.exists(h): |
327 raise SystemExit('Python headers are required to build ' |
330 raise SystemExit('Python headers are required to build ' |