Skip to content

Commit

Permalink
Support Python 3.x by using the use_2to3 option
Browse files Browse the repository at this point in the history
This library does not support Python 3.x
because it uses `unicode` and `long` functions in `writer.py`.

Fix the problem by using the `use_2to3` option in `setup.py`.
  • Loading branch information
seikichi committed Oct 11, 2016
1 parent 205b215 commit a0af798
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
entry_points="""
[console_scripts]
rst2ast = rst2ast.cmd:run
"""
""",
use_2to3 = True
)

1 comment on commit a0af798

@torbsorb
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a real issue now, pypa/setuptools#2086. Is it possible to rewrite writer.py?

Please sign in to comment.