diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2010-02-09 02:09:10 +0100 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2010-02-09 02:09:10 +0100 |
commit | 0319c665fe5bf0ecca06ff15c891987d4d0b32cf (patch) | |
tree | 8e2e14f38d1a5cb64e2ab9cc488b3eed9b6c08b0 /setup.py | |
parent | 656d5e7c315c462eff219bc45926376759b25364 (diff) | |
download | jinja2-0319c665fe5bf0ecca06ff15c891987d4d0b32cf.tar.gz |
experimental Python 3 support.
--HG--
branch : trunk
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -46,6 +46,11 @@ from setuptools import setup, Extension, Feature from distutils.command.build_ext import build_ext from distutils.errors import CCompilerError, DistutilsPlatformError +try: + from distutils.command.build_py import build_py_2to3 as build_py +except ImportError: + from distutils.command.build_py import build_py + setup( name='Jinja2', @@ -83,5 +88,6 @@ setup( entry_points=""" [babel.extractors] jinja2 = jinja2.ext:babel_extract[i18n] - """ + """, + cmdclass=dict(build_py=build_py) ) |