diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | CHANGES.txt | 1 | ||||
-rw-r--r-- | setup.py | 3 |
3 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,5 @@ *.egg-info +*.egg *.pyc *.so /build diff --git a/CHANGES.txt b/CHANGES.txt index 1a3631d..dee0097 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,6 @@ Version 2.1.4 released XXXX-XX-XX +* Does not try to build the extension when using PyPy * Trailing whitespace after commas no longer emitted when indent is used * Migrated to github http://github.com/simplejson/simplejson @@ -12,6 +12,7 @@ from distutils.command.build_ext import build_ext from distutils.errors import CCompilerError, DistutilsExecError, \ DistutilsPlatformError +IS_PYPY = hasattr(sys, 'pypy_translation_info') VERSION = '2.1.4' DESCRIPTION = "Simple, fast, extensible JSON encoder/decoder for Python" LONG_DESCRIPTION = open('README.rst', 'r').read() @@ -84,7 +85,7 @@ def run_setup(with_binary): ) try: - run_setup(True) + run_setup(not IS_PYPY) except BuildFailed: BUILD_EXT_WARNING = "WARNING: The C extension could not be compiled, speedups are not enabled." print '*' * 75 |