[Python-checkins] r61846 - in python/trunk: Misc/NEWS Tools/scripts/2to3 setup.py

martin.v.loewis python-checkins at python.org
Mon Mar 24 13:57:54 CET 2008


Author: martin.v.loewis
Date: Mon Mar 24 13:57:53 2008
New Revision: 61846

Added:
   python/trunk/Tools/scripts/2to3   (contents, props changed)
Modified:
   python/trunk/Misc/NEWS
   python/trunk/setup.py
Log:
Install 2to3 script.


Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Mon Mar 24 13:57:53 2008
@@ -160,6 +160,8 @@
 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.
 

Added: python/trunk/Tools/scripts/2to3
==============================================================================
--- (empty file)
+++ python/trunk/Tools/scripts/2to3	Mon Mar 24 13:57:53 2008
@@ -0,0 +1,5 @@
+#!/usr/bin/env python
+from lib2to3 import refactor
+import sys
+
+sys.exit(refactor.main())

Modified: python/trunk/setup.py
==============================================================================
--- python/trunk/setup.py	(original)
+++ python/trunk/setup.py	Mon Mar 24 13:57:53 2008
@@ -1716,6 +1716,7 @@
 
           # Scripts to install
           scripts = ['Tools/scripts/pydoc', 'Tools/scripts/idle',
+                     'Tools/scripts/2to3',
                      'Lib/smtpd.py']
         )
 


More information about the Python-checkins mailing list