[oe] [PATCH 2/2] python3-astor: Fix issue with new version of setuptools

Richard Purdie richard.purdie at linuxfoundation.org
Wed Oct 23 21:17:02 UTC 2019


Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 .../python3-astor/fix-new-setuptools.patch     | 18 ++++++++++++++++++
 .../python/python3-astor_0.8.0.bb              |  3 ++-
 2 files changed, 20 insertions(+), 1 deletion(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-astor/fix-new-setuptools.patch

diff --git a/meta-python/recipes-devtools/python/python3-astor/fix-new-setuptools.patch b/meta-python/recipes-devtools/python/python3-astor/fix-new-setuptools.patch
new file mode 100644
index 000000000..90defe25c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-astor/fix-new-setuptools.patch
@@ -0,0 +1,18 @@
+New versions of setuptools can't parse this expression. We know our python versions
+match so just remove it until upstream fixes it.
+
+Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
+Upstream-Status: Pending
+
+Index: git/setup.cfg
+===================================================================
+--- git.orig/setup.cfg
++++ git/setup.cfg
+@@ -34,7 +34,6 @@ classifiers =
+ zip_safe = True
+ include_package_data = True
+ packages = find:
+-python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
+ 
+ [options.packages.find]
+ exclude = tests
diff --git a/meta-python/recipes-devtools/python/python3-astor_0.8.0.bb b/meta-python/recipes-devtools/python/python3-astor_0.8.0.bb
index c2dc9245c..97dbdbbea 100644
--- a/meta-python/recipes-devtools/python/python3-astor_0.8.0.bb
+++ b/meta-python/recipes-devtools/python/python3-astor_0.8.0.bb
@@ -4,7 +4,8 @@ SECTION = "devel/python"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=561205fdabc3ec52cae2d30815b8ade7"
 
-SRC_URI = "git://github.com/berkerpeksag/astor.git"
+SRC_URI = "git://github.com/berkerpeksag/astor.git \
+           file://fix-new-setuptools.patch"
 SRCREV ?= "4ca3a26e52f08678854c2841cd0fdf223461e47d"
 
 inherit setuptools3
-- 
2.20.1



More information about the Openembedded-devel mailing list