diff options
author | Bob Ippolito <bob@redivi.com> | 2012-12-30 19:55:51 -0800 |
---|---|---|
committer | Bob Ippolito <bob@redivi.com> | 2012-12-30 19:55:51 -0800 |
commit | 02e24f4f856b065aa31d79d4726ce6668a20779e (patch) | |
tree | 28fb30571a6bdb0e6b032ae62d5a92b3edf52791 /setup.py | |
parent | 57d980277f8d1d6324904edd43e1a730572b64b6 (diff) | |
parent | dd76051b3f65625635d39277daf60135215c9d10 (diff) | |
download | simplejson-02e24f4f856b065aa31d79d4726ce6668a20779e.tar.gz |
Merge branch 'py3'v3.0.0
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 36 |
1 files changed, 23 insertions, 13 deletions
@@ -7,15 +7,24 @@ from distutils.errors import CCompilerError, DistutilsExecError, \ DistutilsPlatformError IS_PYPY = hasattr(sys, 'pypy_translation_info') -VERSION = '2.6.2' +VERSION = '3.0.0' DESCRIPTION = "Simple, fast, extensible JSON encoder/decoder for Python" LONG_DESCRIPTION = open('README.rst', 'r').read() CLASSIFIERS = filter(None, map(str.strip, """ +Development Status :: 5 - Production/Stable Intended Audience :: Developers License :: OSI Approved :: MIT License Programming Language :: Python +Programming Language :: Python :: 2 +Programming Language :: Python :: 2.5 +Programming Language :: Python :: 2.6 +Programming Language :: Python :: 2.7 +Programming Language :: Python :: 3 +Programming Language :: Python :: 3.3 +Programming Language :: Python :: Implementation :: CPython +Programming Language :: Python :: Implementation :: PyPy Topic :: Software Development :: Libraries :: Python Modules """.splitlines())) @@ -36,13 +45,13 @@ class ve_build_ext(build_ext): def run(self): try: build_ext.run(self) - except DistutilsPlatformError, x: + except DistutilsPlatformError: raise BuildFailed() def build_extension(self, ext): try: build_ext.build_extension(self, ext) - except ext_errors, x: + except ext_errors: raise BuildFailed() @@ -89,16 +98,17 @@ def run_setup(with_binary): try: run_setup(not IS_PYPY) except BuildFailed: - BUILD_EXT_WARNING = "WARNING: The C extension could not be compiled, speedups are not enabled." - print '*' * 75 - print BUILD_EXT_WARNING - print "Failure information, if any, is above." - print "I'm retrying the build without the C extension now." - print '*' * 75 + BUILD_EXT_WARNING = ("WARNING: The C extension could not be compiled, " + "speedups are not enabled.") + print('*' * 75) + print(BUILD_EXT_WARNING) + print("Failure information, if any, is above.") + print("I'm retrying the build without the C extension now.") + print('*' * 75) run_setup(False) - print '*' * 75 - print BUILD_EXT_WARNING - print "Plain-Python installation succeeded." - print '*' * 75 + print('*' * 75) + print(BUILD_EXT_WARNING) + print("Plain-Python installation succeeded.") + print('*' * 75) |