setup.py
changeset 29600 7a157639b8f2
parent 29541 9631ff5ebbeb
child 29693 b9b9f9a92481
equal deleted inserted replaced
29599:e3dc96834126 29600:7a157639b8f2
   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 '