mirror of
https://git.yoctoproject.org/poky
synced 2026-02-15 13:13:02 +01:00
python[3]-setuptools: inherit setuptools
* distutils[3].bbclass was not including pkg_resources module * Drop uneeded DISTUTILS_INSTALL_ARGS as setuptools[3].bbclass provides it Fixes [YOCTO #12148] (From OE-Core rev: 4e09525c73348c2b47b07654ac31ffc6cbd3d5fe) Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
30cacd568c
commit
64390f742b
@@ -4,15 +4,10 @@ DEPENDS += "python3"
|
||||
DEPENDS_class-native += "python3-native"
|
||||
DEPENDS_class-nativesdk += "nativesdk-python3"
|
||||
|
||||
inherit distutils3
|
||||
inherit setuptools3
|
||||
|
||||
DISTUTILS_INSTALL_ARGS += "--install-lib=${D}${PYTHON_SITEPACKAGES_DIR}"
|
||||
|
||||
# The installer puts the wrong path in the setuptools.pth file. Correct it.
|
||||
do_install_append() {
|
||||
rm ${D}${PYTHON_SITEPACKAGES_DIR}/setuptools.pth
|
||||
mv ${D}${bindir}/easy_install ${D}${bindir}/easy3_install
|
||||
echo "./${SRCNAME}-${PV}-py${PYTHON_BASEVERSION}.egg" > ${D}${PYTHON_SITEPACKAGES_DIR}/setuptools.pth
|
||||
}
|
||||
|
||||
RDEPENDS_${PN}_class-native = "\
|
||||
|
||||
Reference in New Issue
Block a user