Skip to contentSkip to conversation

python: make 'python' install everything instead of just the interpretter

PATCH In review Ross Burton 2 participants 3 messages Jun 20, 2019 – Jun 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python: make 'python' install everything instead of just the interpretter

Follow the python3 behaviour, and common sense, by making 'python' install python-modules instead of python-core. This means a user installing python gets all of Python, instead of just a fraction of the library.

[ YOCTO #13402 ]

---
 meta/recipes-devtools/python/python_2.7.16.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python_2.7.16.bb +1 -1
index d70342fe3a6..5f387b8af11 100644
@@ -162,7 +162,7 @@ py_package_preprocess () {
 PACKAGES_remove = "${PN}"
 
 # manual dependency additions
-RPROVIDES_${PN}-core = "${PN}"
+RPROVIDES_${PN}-modules = "${PN}"
 RRECOMMENDS_${PN}-core_append_class-nativesdk = " nativesdk-python-modules"
 RRECOMMENDS_${PN}-crypt = "openssl"
 
Signature · 1 line
2.11.0
#1 lore raw

Hey Ross,

Quoted 16 lines · Ross Burton

Follow the python3 behaviour, and common sense, by making 'python' install python-modules instead of python-core. This means a user installing python gets all of Python, instead of just a fraction of the library.

[ YOCTO #13402 ]

---
  meta/recipes-devtools/python/python_2.7.16.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python_2.7.16.bb +0 -0
index d70342fe3a6..5f387b8af11 100644

meta/recipes-devtools/python/python_2.7.16.bb py_package_preprocess () { · line 165

Quoted 5 lines
meta/recipes-devtools/python/python_2.7.16.bb +1 -1
@@ -162,7 +162,7 @@ py_package_preprocess () {
  PACKAGES_remove = "${PN}"
 
  # manual dependency additions
-RPROVIDES_${PN}-core = "${PN}"
+RPROVIDES_${PN}-modules = "${PN}"

Is it just me or we already had this?, maybe we had this only for python3

Alejandro

Quoted 3 lines
meta/recipes-devtools/python/python_2.7.16.bb +0 -0
  RRECOMMENDS_${PN}-core_append_class-nativesdk = " nativesdk-python-modules"
  RRECOMMENDS_${PN}-crypt = "openssl"
 
#2 lore raw
Quoted 5 lines · Alejandro Enedino Hernandez Samaniego

meta/recipes-devtools/python/python_2.7.16.bb py_package_preprocess () { · line 165

Quoted 3 lines
  # manual dependency additions
meta/recipes-devtools/python/python_2.7.16.bb +1 -1
-RPROVIDES_${PN}-core = "${PN}"
+RPROVIDES_${PN}-modules = "${PN}"

Is it just me or we already had this?, maybe we had this only for python3

It was only for Py3! Swore I already fixed this too...

Ross