Signed-off-by: Zang Ruochen <[email protected]>
---
 .../python/python-beautifulsoup4.inc           | 16 ++++++++++++++++
 .../python/python-beautifulsoup4_4.4.1.bb      | 18 ++----------------
 .../python/python3-beautifulsoup4_4.4.1.bb     |  2 ++
 3 files changed, 20 insertions(+), 16 deletions(-)
 create mode 100644 
meta-openstack/recipes-devtools/python/python-beautifulsoup4.inc
 create mode 100644 
meta-openstack/recipes-devtools/python/python3-beautifulsoup4_4.4.1.bb

diff --git a/meta-openstack/recipes-devtools/python/python-beautifulsoup4.inc 
b/meta-openstack/recipes-devtools/python/python-beautifulsoup4.inc
new file mode 100644
index 0000000..4ff500b
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-beautifulsoup4.inc
@@ -0,0 +1,16 @@
+DESCRIPTION = "Screen-scraping library"
+HOMEPAGE = "https://pypi.python.org/pypi/beautifulsoup4/";
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=39dacabe5494f61c8680f6fa7323b596"
+
+SRC_URI[md5sum] = "8fbd9a7cac0704645fa20d1419036815"
+SRC_URI[sha256sum] = 
"87d4013d0625d4789a4f56b8d79a04d5ce6db1152bb65f1d39744f7709a366b4"
+
+inherit pypi
+
+# avoid "error: option --single-version-externally-managed not recognized"
+DISTUTILS_INSTALL_ARGS = "--root=${D} \
+    --prefix=${prefix} \
+    --install-lib=${PYTHON_SITEPACKAGES_DIR} \
+    --install-data=${datadir}"
diff --git 
a/meta-openstack/recipes-devtools/python/python-beautifulsoup4_4.4.1.bb 
b/meta-openstack/recipes-devtools/python/python-beautifulsoup4_4.4.1.bb
index cb72f87..595fe5f 100644
--- a/meta-openstack/recipes-devtools/python/python-beautifulsoup4_4.4.1.bb
+++ b/meta-openstack/recipes-devtools/python/python-beautifulsoup4_4.4.1.bb
@@ -1,16 +1,2 @@
-DESCRIPTION = "Screen-scraping library"
-HOMEPAGE = "https://pypi.python.org/pypi/beautifulsoup4/";
-SECTION = "devel/python"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://COPYING.txt;md5=39dacabe5494f61c8680f6fa7323b596"
-
-SRC_URI[md5sum] = "8fbd9a7cac0704645fa20d1419036815"
-SRC_URI[sha256sum] = 
"87d4013d0625d4789a4f56b8d79a04d5ce6db1152bb65f1d39744f7709a366b4"
-
-inherit setuptools pypi
-
-# avoid "error: option --single-version-externally-managed not recognized"
-DISTUTILS_INSTALL_ARGS = "--root=${D} \
-    --prefix=${prefix} \
-    --install-lib=${PYTHON_SITEPACKAGES_DIR} \
-    --install-data=${datadir}"
+require python-beautifulsoup4.inc
+inherit setuptools
diff --git 
a/meta-openstack/recipes-devtools/python/python3-beautifulsoup4_4.4.1.bb 
b/meta-openstack/recipes-devtools/python/python3-beautifulsoup4_4.4.1.bb
new file mode 100644
index 0000000..3bc9066
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-beautifulsoup4_4.4.1.bb
@@ -0,0 +1,2 @@
+require python-beautifulsoup4.inc
+inherit setuptools3
-- 
2.20.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#4775): 
https://lists.yoctoproject.org/g/meta-virtualization/message/4775
Mute This Topic: https://lists.yoctoproject.org/mt/64295530/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to