Install 2to3 script.

This commit is contained in:
Martin v. Löwis 2008-03-24 12:57:53 +00:00
parent 9bdead0aed
commit cdbc977c03
3 changed files with 8 additions and 0 deletions

View File

@ -160,6 +160,8 @@ Tests
Build 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 - Python/memmove.c and Python/strerror.c have been removed; both functions are
in the C89 standard library. in the C89 standard library.

5
Tools/scripts/2to3 Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env python
from lib2to3 import refactor
import sys
sys.exit(refactor.main())

View File

@ -1716,6 +1716,7 @@ def main():
# Scripts to install # Scripts to install
scripts = ['Tools/scripts/pydoc', 'Tools/scripts/idle', scripts = ['Tools/scripts/pydoc', 'Tools/scripts/idle',
'Tools/scripts/2to3',
'Lib/smtpd.py'] 'Lib/smtpd.py']
) )