Skip to content

Commit

Permalink
Enabled 2to3 for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jun 22, 2010
1 parent 05b792c commit 5e7a7a6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions setup.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
ext_errors += (IOError,) ext_errors += (IOError,)




extra = {}
if sys.version_info >= (3, 0):
extra['use_2to3'] = True


class BuildFailed(Exception): class BuildFailed(Exception):
pass pass


Expand Down Expand Up @@ -54,7 +59,7 @@ def run_setup(with_binary):
features['speedups'] = speedups features['speedups'] = speedups
setup( setup(
name='MarkupSafe', name='MarkupSafe',
version='0.9', version='0.9.1',
url='http://dev.pocoo.org/', url='http://dev.pocoo.org/',
license='BSD', license='BSD',
author='Armin Ronacher', author='Armin Ronacher',
Expand All @@ -78,7 +83,8 @@ def run_setup(with_binary):
test_suite='markupsafe.tests.suite', test_suite='markupsafe.tests.suite',
include_package_data=True, include_package_data=True,
cmdclass={'build_ext': ve_build_ext}, cmdclass={'build_ext': ve_build_ext},
features=features features=features,
**extra
) )




Expand Down

0 comments on commit 5e7a7a6

Please sign in to comment.