#! /usr/bin/env python

from __future__ import print_function
import os, sys

# if setuptools is not installed, fall back to distutils
try:
	from setuptools import setup
except ImportError:
	from distutils.core import setup
	distutils_scripts = [
		"Tools/ttx", "Tools/pyftsubset", "Tools/pyftinspect", "Tools/pyftmerge"]
else:
	distutils_scripts = []

try:
	import xml.parsers.expat
except ImportError:
	print("*** Warning: FontTools needs PyXML, see:")
	print("        http://sourceforge.net/projects/pyxml/")


# Force distutils to use py_compile.compile() function with 'doraise' argument
# set to True, in order to raise an exception on compilation errors
import py_compile
orig_py_compile = py_compile.compile

def doraise_py_compile(file, cfile=None, dfile=None, doraise=False):
    orig_py_compile(file, cfile=cfile, dfile=dfile, doraise=True)

py_compile.compile = doraise_py_compile


if sys.version_info > (2, 3, 0, 'alpha', 1):
	# Trove classifiers for PyPI
	classifiers = {"classifiers": [
		"Development Status :: 4 - Beta",
		"Environment :: Console",
		"Environment :: Other Environment",
		"Intended Audience :: Developers",
		"Intended Audience :: End Users/Desktop",
		"License :: OSI Approved :: BSD License",
		"Natural Language :: English",
		"Operating System :: OS Independent",
		"Programming Language :: Python",
		"Topic :: Multimedia :: Graphics",
		"Topic :: Multimedia :: Graphics :: Graphics Conversion",
	]}
else:
	classifiers = {}

long_description = """\
FontTools/TTX is a library to manipulate font files from Python.
It supports reading and writing of TrueType/OpenType fonts, reading
and writing of AFM files, reading (and partially writing) of PS Type 1
fonts. The package also contains a tool called "TTX" which converts
TrueType/OpenType fonts to and from an XML-based format.
"""

setup(
		name = "fonttools",
		version = "2.5",
		description = "Tools to manipulate font files",
		author = "Just van Rossum",
		author_email = "just@letterror.com",
		maintainer = "Behdad Esfahbod",
		maintainer_email = "behdad@behdad.org",
		url = "http://github.com/behdad/fonttools",
		license = "OpenSource, BSD-style",
		platforms = ["Any"],
		long_description = long_description,
		
		packages = [
			"fontTools",
			"fontTools.encodings",
			"fontTools.misc",
			"fontTools.pens",
			"fontTools.ttLib",
			"fontTools.ttLib.tables",
		],
		py_modules = ['sstruct', 'xmlWriter'],
		package_dir = {'': 'Lib'},
		extra_path = 'FontTools',
		data_files = [('share/man/man1', ["Doc/ttx.1"])],
		scripts = distutils_scripts,
		entry_points = {
				'console_scripts': [
					"ttx = fontTools.ttx:main",
					"pyftsubset = fontTools.subset:main",
					"pyftmerge = fontTools.merge:main",
					"pyftinspect = fontTools.inspect:main"
				]
			},
		**classifiers
	)

@@ -892,54 +892,8 @@
 e%0A%0A%0A
-if sys.version_info %3E (2, 3, 0, 'alpha', 1):%0A%09
 # Tr
@@ -917,17 +917,16 @@
 or PyPI%0A
-%09
 classifi
@@ -949,17 +949,16 @@
 ers%22: %5B%0A
-%09
 %09%22Develo
@@ -984,17 +984,16 @@
  Beta%22,%0A
-%09
 %09%22Enviro
@@ -1011,17 +1011,16 @@
 nsole%22,%0A
-%09
 %09%22Enviro
@@ -1048,17 +1048,16 @@
 nment%22,%0A
-%09
 %09%22Intend
@@ -1084,17 +1084,16 @@
 opers%22,%0A
-%09
 %09%22Intend
@@ -1127,17 +1127,16 @@
 sktop%22,%0A
-%09
 %09%22Licens
@@ -1170,17 +1170,16 @@
 cense%22,%0A
-%09
 %09%22Natura
@@ -1202,17 +1202,16 @@
 glish%22,%0A
-%09
 %09%22Operat
@@ -1241,17 +1241,16 @@
 ndent%22,%0A
-%09
 %09%22Progra
@@ -1276,17 +1276,16 @@
 ython%22,%0A
-%09
 %09%22Topic 
@@ -1312,17 +1312,16 @@
 phics%22,%0A
-%09
 %09%22Topic 
@@ -1375,34 +1375,9 @@
 n%22,%0A
-%09%5D%7D%0Aelse:%0A%09classifiers = %7B
+%5D
 %7D%0A%0Al

Remove obsolete version check