f3bd8af549
is going away
27 lines
827 B
Plaintext
27 lines
827 B
Plaintext
no use_2to3 in newer setuptools
|
|
|
|
Index: setup.py
|
|
--- setup.py.orig
|
|
+++ setup.py
|
|
@@ -33,20 +33,6 @@ if False:
|
|
|
|
py3extra = {}
|
|
|
|
-if py_major >= 3:
|
|
- # Make sure 2to3 gets run
|
|
- if distmech == 'setuptools':
|
|
- py3extra['use_2to3'] = True
|
|
- #py3extra['convert_2to3_doctests'] = ['src/your/module/README.txt']
|
|
- #py3extra['use_2to3_fixers'] = ['your.fixers']
|
|
- elif distmech == 'distutils':
|
|
- import distutils, distutils.command, distutils.command.build_py, distutils.command.build_scripts
|
|
- cmdclass = {
|
|
- 'build_py': distutils.command.build_py.build_py_2to3,
|
|
- 'build_scripts': distutils.command.build_scripts.build_scripts_2to3
|
|
- }
|
|
- py3extra['cmdclass'] = cmdclass
|
|
-
|
|
setup( name=name,
|
|
version=version,
|
|
py_modules=[name],
|