python/elasticsearch: update to 8.16.0
[oi-userland.git] / components / python / nose / patches / 01-setuptools-2to3.patch
blobf50270e1a84004d34a9fc3a1b64cb0e990706e14
1 Support for 2to3 was removed in setuptools 58.0.0 so we cannot use it.
3 --- nose-1.3.7/setup.py.orig
4 +++ nose-1.3.7/setup.py
5 @@ -13,7 +13,7 @@
6 from distribute_setup import use_setuptools
7 use_setuptools()
9 - extra = {'use_2to3': True,
10 + extra = {'use_2to3': False,
11 'test_dirs': test_dirs,
12 'test_build_dir': 'build/tests',
13 'pyversion_patching': True,
14 --- nose-1.3.7/setup3lib.py.orig
15 +++ nose-1.3.7/setup3lib.py
16 @@ -18,7 +18,6 @@
17 import logging
18 from setuptools import Distribution as _Distribution
19 from distutils.core import Command
20 - from setuptools.command.build_py import Mixin2to3
21 from distutils import dir_util, file_util, log
22 import setuptools.command.test
23 from pkg_resources import normalize_path
24 @@ -68,7 +67,7 @@
25 self.pyversion_patching = False
26 _Distribution.__init__(self, attrs)
28 - class BuildTestsCommand (Command, Mixin2to3):
29 + class BuildTestsCommand (Command):
30 # Create mirror copy of tests, convert all .py files using 2to3
31 user_options = []