| 1 | n/a | # -*- coding: iso-8859-1 -*- |
|---|
| 2 | n/a | from distutils.core import setup |
|---|
| 3 | n/a | |
|---|
| 4 | n/a | try: |
|---|
| 5 | n/a | from distutils.command.build_py import build_py_2to3 as build_py |
|---|
| 6 | n/a | except ImportError: |
|---|
| 7 | n/a | from distutils.command.build_py import build_py |
|---|
| 8 | n/a | |
|---|
| 9 | n/a | try: |
|---|
| 10 | n/a | from distutils.command.build_scripts import build_scripts_2to3 as build_scripts |
|---|
| 11 | n/a | except ImportError: |
|---|
| 12 | n/a | from distutils.command.build_scripts import build_scripts |
|---|
| 13 | n/a | |
|---|
| 14 | n/a | setup( |
|---|
| 15 | n/a | name = "test2to3", |
|---|
| 16 | n/a | version = "1.0", |
|---|
| 17 | n/a | description = "2to3 distutils test package", |
|---|
| 18 | n/a | author = "Martin v. Löwis", |
|---|
| 19 | n/a | author_email = "python-dev@python.org", |
|---|
| 20 | n/a | license = "PSF license", |
|---|
| 21 | n/a | packages = ["test2to3"], |
|---|
| 22 | n/a | scripts = ["maintest.py"], |
|---|
| 23 | n/a | cmdclass = {'build_py': build_py, |
|---|
| 24 | n/a | 'build_scripts': build_scripts, |
|---|
| 25 | n/a | } |
|---|
| 26 | n/a | ) |
|---|