1. Daniel Neuhäuser
  2. cffi

Commits

Armin Rigo  committed ecac15a

Disable compiling _cffi_backend.c with pypy.

  • Participants
  • Parent commits 568b239
  • Branches default

Comments (0)

Files changed (1)

File setup_base.py

View file
 if __name__ == '__main__':
     from distutils.core import setup
     from distutils.extension import Extension
+    standard = '__pypy__' not in sys.modules
     setup(packages=['cffi'],
           requires=['pycparser'],
           ext_modules=[Extension(name = '_cffi_backend',
                                  library_dirs=library_dirs,
                                  extra_compile_args=extra_compile_args,
                                  extra_link_args=extra_link_args,
-                                 )])
+                                 )] * standard)