1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Description: add support for Python 3
Author: Jakub Wilk <jwilk@debian.org>
Forwarded: no
Last-Update: 2013-12-26
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,10 @@
from distutils.core import setup
+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='roman',
version='2.0.0',
@@ -27,5 +32,6 @@
url = 'http://pypi.python.org/pypi/roman',
package_dir={"": "src"},
py_modules=["roman"],
+ cmdclass=dict(build_py=build_py),
test_suite = 'tests',
)
|