From cd5f7984f5f7037ba3d0288076a1456c6b83da95 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 15 Apr 2014 12:06:01 -0400 Subject: * Use ``setuptools`` instead of ``distribute``, since the latter is defunct. --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 5adf7814a..79018f19d 100644 --- a/setup.py +++ b/setup.py @@ -15,8 +15,8 @@ # You should have received a copy of the GNU General Public License along with # GNU Mailman. If not, see . -from distribute_setup import use_setuptools -use_setuptools() +# Do *not* import unicode_literals. This breaks setuptools. +from __future__ import absolute_import, print_function import re import sys @@ -25,7 +25,7 @@ from setuptools import setup, find_packages from string import Template if sys.hexversion < 0x20700f0: - print 'Mailman requires at least Python 2.7' + print('Mailman requires at least Python 2.7') sys.exit(1) @@ -37,7 +37,7 @@ with open('src/mailman/version.py') as fp: __version__ = mo.group('version') break else: - print 'No version number found' + print('No version number found') sys.exit(1) -- cgit v1.2.3-70-g09d2