File: 2to3.diff

package info (click to toggle)
python-roman 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 180 kB
  • ctags: 115
  • sloc: python: 339; makefile: 37; sh: 14
file content (25 lines) | stat: -rw-r--r-- 596 bytes parent folder | download
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',
     )