From 78afdd242899e6287e05f48e4e43e80a899e6733 Mon Sep 17 00:00:00 2001 From: zangrc Date: Fri, 29 Nov 2019 09:35:06 +0800 Subject: python-beautifulsoup4: Add python3 version Signed-off-by: Zang Ruochen Signed-off-by: Bruce Ashfield --- .../recipes-devtools/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 (limited to 'meta-openstack/recipes-devtools/python') 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 -- cgit v1.2.3-54-g00ecf