From cdbc977c0344cfe2294e8be69cd1acd77b3b79ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Mon, 24 Mar 2008 12:57:53 +0000 Subject: Install 2to3 script. --- Misc/NEWS | 2 ++ Tools/scripts/2to3 | 5 +++++ setup.py | 1 + 3 files changed, 8 insertions(+) create mode 100755 Tools/scripts/2to3 diff --git a/Misc/NEWS b/Misc/NEWS index 54d955b..172b42a 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -160,6 +160,8 @@ Tests Build ----- +- A new script 2to3 is now installed, to run the 2.x to 3.x converter. + - Python/memmove.c and Python/strerror.c have been removed; both functions are in the C89 standard library. diff --git a/Tools/scripts/2to3 b/Tools/scripts/2to3 new file mode 100755 index 0000000..251c291 --- /dev/null +++ b/Tools/scripts/2to3 @@ -0,0 +1,5 @@ +#!/usr/bin/env python +from lib2to3 import refactor +import sys + +sys.exit(refactor.main()) diff --git a/setup.py b/setup.py index 20a3e9b..af15855 100644 --- a/setup.py +++ b/setup.py @@ -1716,6 +1716,7 @@ def main(): # Scripts to install scripts = ['Tools/scripts/pydoc', 'Tools/scripts/idle', + 'Tools/scripts/2to3', 'Lib/smtpd.py'] ) -- cgit v0.12