From 6cf292602b63b35ff750e9150687fa6744f27a17 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 13 Oct 2021 08:26:11 -0700 Subject: python3-anyjson: Do not enable 2to3 Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../0001-setup.py-Do-not-use-2to3.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-anyjson/0001-setup.py-Do-not-use-2to3.patch (limited to 'meta-python/recipes-devtools/python/python3-anyjson/0001-setup.py-Do-not-use-2to3.patch') diff --git a/meta-python/recipes-devtools/python/python3-anyjson/0001-setup.py-Do-not-use-2to3.patch b/meta-python/recipes-devtools/python/python3-anyjson/0001-setup.py-Do-not-use-2to3.patch new file mode 100644 index 0000000000..2b9e6e52e8 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-anyjson/0001-setup.py-Do-not-use-2to3.patch @@ -0,0 +1,29 @@ +From 4fb61d7c621599b0db9c2c45f4243f07936c5953 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 13 Oct 2021 08:20:00 -0700 +Subject: [PATCH] setup.py: Do not use 2to3 + +This helps compiling with setuptools 0.58+ +and it seems to compile fine with python3 + +Signed-off-by: Khem Raj +--- + setup.py | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 9fe4902..f2098e1 100644 +--- a/setup.py ++++ b/setup.py +@@ -2,8 +2,6 @@ import os + import sys + + extra = {} +-if sys.version_info >= (3, 0): +- extra.update(use_2to3=True) + + try: + from setuptools import setup, find_packages +-- +2.33.0 + -- cgit v1.2.3-54-g00ecf