From 0faa861cae96bbeef632b722c7f7723cced01109 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Tue, 9 Feb 2010 15:04:51 +0100 Subject: Propably delaying release for better python 3 support. Started working on that. --HG-- branch : trunk --- setup.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 5e9efcb..134cc97 100644 --- a/setup.py +++ b/setup.py @@ -43,13 +43,14 @@ import os import sys 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 +# tell distribute to use 2to3 with our own fixers. +extra = {} +if sys.version_info >= (3, 0): + extra.update( + use_2to3=True, + use_2to3_fixers=['custom_fixers'] + ) setup( @@ -89,5 +90,5 @@ setup( [babel.extractors] jinja2 = jinja2.ext:babel_extract[i18n] """, - cmdclass=dict(build_py=build_py) + **extra ) -- cgit v1.2.1