setuptools3: adding sanity check to detect python-eggs install
cover setuptools3: adding sanity check to detect python-eggs install
From: Loc Nguyen <[email protected]>
I'm a new comer, please help to review and feedback.
We are planning to contribute to yocto prj, beginning with fixing newcomer's bug at: https://bugzilla.yoctoproject.org/show_bug.cgi?id=5725
The following changes since commit 23212c8c44315ed6612009e0e667d14ad26459b0:
rpm: fix RPM_ETCCONFIGDIR value in SDK (2023-03-22 23:17:27 +0000)
are available in the Git repository at:
https://git.yoctoproject.org/poky-contrib locNg/bugfix_bug5725
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=locNg/bugfix_bug5725
Loc Nguyen (1):
setuptools3: adding sanity check to detect python-eggs install
meta/classes-recipe/setuptools3.bbclass | 10 ++++++++++ 1 file changed, 10 insertions(+)
Signature · 1 line
2.25.1
PATCH 1/1 setuptools3: adding sanity check to detect python-eggs install
From: Loc Nguyen <[email protected]>
Packages that install Python modules shouldn't be installing Eggs, as distro-managed modules should be "bare"
Added a sanity check to verify if python modules will install Eggs. If yes, display a warning message to user.
See [YOCTO #5725] for more details
--- meta/classes-recipe/setuptools3.bbclass | 10 ++++++++++ 1 file changed, 10 insertions(+)
meta/classes-recipe/setuptools3.bbclass +10 -0
@@ -33,6 +33,16 @@ setuptools3_do_install() { python_pep517_do_install } +python do_sanity_check() { + # Python modules shouldn't be installing Eggs, as distro-managed modules should be "bare" + pkgName = d.getVar('BPN') + rdeps = d.getVar('RDEPENDS_' + pkgName) or "" + if ('python-eggs' in rdeps) or ('python3-eggs' in rdeps): + bb.warn(pkgName + ' is installing Eggs.') +} + +addtask sanity_check before do_fetch + EXPORT_FUNCTIONS do_configure do_compile do_install export LDSHARED="${CCLD} -shared"
Signature · 1 line
2.25.1