diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-12-01 04:38:52 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-12-01 04:38:52 (GMT) |
commit | 6178db6d55eac65fc236cbf48a3944d1c308c2d1 (patch) | |
tree | 50e8a412ac195901f0e9873a53e92e9f7361f5f2 /Demo | |
parent | 2212e529d9ecb3aafa5c4f65930a1a9ddbc6585f (diff) | |
download | cpython-6178db6d55eac65fc236cbf48a3944d1c308c2d1.zip cpython-6178db6d55eac65fc236cbf48a3944d1c308c2d1.tar.gz cpython-6178db6d55eac65fc236cbf48a3944d1c308c2d1.tar.bz2 |
Issue #4073: Add 2to3 support to build_scripts, refactor that support
in build_py.
Diffstat (limited to 'Demo')
-rw-r--r-- | Demo/distutils/test2to3/setup.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Demo/distutils/test2to3/setup.py b/Demo/distutils/test2to3/setup.py index 3abb5ff..deb9a69 100644 --- a/Demo/distutils/test2to3/setup.py +++ b/Demo/distutils/test2to3/setup.py @@ -6,6 +6,11 @@ try: except ImportError: from distutils.command.build_py import build_py +try: + from distutils.command.build_scripts import build_scripts_2to3 as build_scripts +except ImportError: + from distutils.command.build_scripts import build_scripts + setup( name = "test2to3", version = "1.0", @@ -14,5 +19,8 @@ setup( author_email = "python-dev@python.org", license = "PSF license", packages = ["test2to3"], - cmdclass = {'build_py':build_py} + scripts = ["maintest.py"], + cmdclass = {'build_py':build_py, + 'build_scripts':build_scripts, + } ) |