diff options
author | Armin Rigo <arigo@tunes.org> | 2012-11-01 13:15:00 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2012-11-01 13:15:00 +0100 |
commit | 44651276fee1a8e42703280dda3477d59e722714 (patch) | |
tree | fd4cf392d0b0ca1bab0d61a87a7e225629f3de18 /setup_base.py | |
parent | f5f21b26a3e87822693946d120b80379016ec3b4 (diff) | |
download | cffi-44651276fee1a8e42703280dda3477d59e722714.tar.gz |
Disable compiling _cffi_backend.c with pypy.
Diffstat (limited to 'setup_base.py')
-rw-r--r-- | setup_base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setup_base.py b/setup_base.py index 7582535..8a56b90 100644 --- a/setup_base.py +++ b/setup_base.py @@ -8,6 +8,7 @@ from setup import library_dirs, extra_compile_args, extra_link_args 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', @@ -18,4 +19,4 @@ if __name__ == '__main__': library_dirs=library_dirs, extra_compile_args=extra_compile_args, extra_link_args=extra_link_args, - )]) + )] * standard) |