]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Install 2to3 script.
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 24 Mar 2008 12:57:53 +0000 (12:57 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 24 Mar 2008 12:57:53 +0000 (12:57 +0000)
Misc/NEWS
Tools/scripts/2to3 [new file with mode: 0755]
setup.py

index 54d955b20f86a5a28f34fb8f949705106d12f81c..172b42a71336b8691351bdc056d495c205840457 100644 (file)
--- 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 (executable)
index 0000000..251c291
--- /dev/null
@@ -0,0 +1,5 @@
+#!/usr/bin/env python
+from lib2to3 import refactor
+import sys
+
+sys.exit(refactor.main())
index 20a3e9be460d57ee4eea8f7d03511a3ea80f6c39..af15855f6086e5ee628e72de3eff892d9ccc6c9a 100644 (file)
--- 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']
         )