diff -uNr cssutils-1.0.1.orig/setup.py cssutils-1.0.1/setup.py
--- cssutils-1.0.1.orig/setup.py 2016-08-27 11:03:20.928418737 +0200
+++ cssutils-1.0.1/setup.py 2016-08-27 11:03:46.915205061 +0200
@@ -26,12 +26,6 @@
exec(line, locals(), globals())
-# use the build_py_2to3 if we're building on Python 3
-try:
- from distutils.command.build_py import build_py_2to3 as build_py
-except ImportError:
- from distutils.command.build_py import build_py
-
try:
from setuptools import setup, find_packages
except ImportError:
@@ -67,10 +61,7 @@
license='LGPL 2.1 or later, see also http://cthedot.de/cssutils/',
keywords='CSS, Cascading Style Sheets, CSSParser, DOM Level 2 Stylesheets, DOM Level 2 CSS',
platforms='Python 2.5 and later. Python 3.2 and later. Jython 2.5.1 and later.',
- cmdclass=dict(
- # specify the build_py command imported earlier
- build_py=build_py,
- ),
+ use_2to3=True,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',