python-pyroute2: uprev to v0.4.21 (from 0.3.22)
PATCH 1/1 python-pyroute2: uprev to v0.4.21 (from 0.3.22)
Drop the json<-->simplejson patch instead opting to depend on python-json (part of core python libs). Beyond this the uprev is straightforward.
---
.../recipes-devtools/python/python-pyroute2.inc | 23 +++++--------------
.../import-simplejson-as-json.patch | 26 ----------------------
...yroute2_0.3.22.bb => python-pyroute2_0.4.21.bb} | 0
...route2_0.3.22.bb => python3-pyroute2_0.4.21.bb} | 0
4 files changed, 6 insertions(+), 43 deletions(-)
delete mode 100644 meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch
rename meta-python/recipes-devtools/python/{python-pyroute2_0.3.22.bb => python-pyroute2_0.4.21.bb} (100%)
rename meta-python/recipes-devtools/python/{python3-pyroute2_0.3.22.bb => python3-pyroute2_0.4.21.bb} (100%)meta-python/recipes-devtools/python/python-pyroute2.inc +6 -17
@@ -1,26 +1,15 @@ SUMMARY = "A pure Python netlink and Linux network configuration library" LICENSE = "GPLv2 & Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE.GPL.v2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ - file://LICENSE.Apache.v2;md5=3b83ef96387f14655fc854ddc3c6bd57" + file://LICENSE.Apache.v2;md5=34281e312165f843a2b7d1f114fe65ce" -SRC_URI[md5sum] = "733adb362b6603c7269c0b3df3045a55" -SRC_URI[sha256sum] = "5cdf44656cf623369f0cbf183d9d14a1a50ebdffbd50d4e30ffda62c0a05d7b3" - -SRC_URI += "file://import-simplejson-as-json.patch" +SRC_URI[md5sum] = "9c251543c4282a2f8b1a8d6aa8afc688" +SRC_URI[sha256sum] = "7afad28ee0a0f3e7c34adaa9f953d00560ed9910203e93f107833b6e8d151171" FILESEXTRAPATHS_prepend := "${THISDIR}/python-pyroute2:" inherit pypi -RDEPENDS_${PN} += "\ - ${PYTHON_PN}-distutils \ - ${PYTHON_PN}-simplejson \ - ${PYTHON_PN}-multiprocessing \ - ${PYTHON_PN}-io ${PYTHON_PN}-pprint \ - ${PYTHON_PN}-pickle \ - ${PYTHON_PN}-logging \ - ${PYTHON_PN}-threading \ - ${PYTHON_PN}-textutils \ - ${PYTHON_PN}-subprocess \ - ${PYTHON_PN}-netclient \ -" +RDEPENDS_${PN} += " \ + ${PYTHON_PN}-json \ + "
meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch deleted +0 -26
@@ -1,26 +0,0 @@ -Upstream-Status: Inappropriate [wrong dependency] - -Subject: [PATCH] import simplejson as json - -At runtime python-pyroute2 tries to import json, but the module is not -available, import simplejson as json solve the issue. - -Signed-off-by: Fabio Berton <[email protected]> ---- - pyroute2/netlink/rtnl/ifinfmsg.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pyroute2/netlink/rtnl/ifinfmsg.py b/pyroute2/netlink/rtnl/ifinfmsg.py -index 4f14f25..55643eb 100644 ---- a/pyroute2/netlink/rtnl/ifinfmsg.py -+++ b/pyroute2/netlink/rtnl/ifinfmsg.py -@@ -1,5 +1,5 @@ - import os --import json -+import simplejson as json - import errno - import select - import struct --- -2.1.4 -
meta-python/recipes-devtools/python/python-pyroute2_0.4.21.bb renamed from meta-python/recipes-devtools/python/python-pyroute2_0.3.22.bb +0 -0
meta-python/recipes-devtools/python/python3-pyroute2_0.4.21.bb renamed from meta-python/recipes-devtools/python/python3-pyroute2_0.3.22.bb +0 -0
Signature · 1 line
2.7.4
Quoted 42 lines · Mark Asselstine
Drop the json<-->simplejson patch instead opting to depend on python-json (part of core python libs). Beyond this the uprev is straightforward.
Signed-off-by Mark Asselstine <[email protected]>--- .../recipes-devtools/python/python-pyroute2.inc | 23 +++++-------------- .../import-simplejson-as-json.patch | 26 ---------------------- ...yroute2_0.3.22.bb => python-pyroute2_0.4.21.bb} | 0 ...route2_0.3.22.bb => python3-pyroute2_0.4.21.bb} | 0 4 files changed, 6 insertions(+), 43 deletions(-) delete mode 100644 meta-python/recipes-devtools/ python/python-pyroute2/import-simplejson-as-json.patch rename meta-python/recipes-devtools/python/{python-pyroute2_0.3.22.bb => python-pyroute2_0.4.21.bb} (100%) rename meta-python/recipes-devtools/python/{python3-pyroute2_0.3.22.bb=> python3-pyroute2_0.4.21.bb} (100%)
meta-python/recipes-devtools/python/python-pyroute2.inc +0
-1@@ -1,26 +1,15 @@ SUMMARY = "A pure Python netlink and Linux network configuration library" LICENSE = "GPLv2 & Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE.GPL.v2;md5= b234ee4d69f5fce4486a80fdaf4a4263 \ - file://LICENSE.Apache.v2;md5=
3b83ef96387f14655fc854ddc3c6bd57"
+ file://LICENSE.Apache.v2;md5=34281e312165f843a2b7d1f114fe65ce"meta-python/recipes-devtools/python/python-pyroute2.inc +0
-2-SRC_URI[md5sum] = "733adb362b6603c7269c0b3df3045a55" -SRC_URI[sha256sum] = "5cdf44656cf623369f0cbf183d9d14
a1a50ebdffbd50d4e30ffda62c0a05d7b3"meta-python/recipes-devtools/python/python-pyroute2.inc +2
-2- -SRC_URI += "file://import-simplejson-as-json.patch" +SRC_URI[md5sum] = "9c251543c4282a2f8b1a8d6aa8afc688" +SRC_URI[sha256sum] = "7afad28ee0a0f3e7c34adaa9f953d0
Quoted 3 lines
0560ed9910203e93f107833b6e8d151171"
Can we remove the extra path prepend now?
Quoted 7 lines
FILESEXTRAPATHS_prepend:= "${THISDIR}/python-pyroute2:"inherit pypi
meta-python/recipes-devtools/python/python-pyroute2.inc +0
-2-RDEPENDS_${PN} += "\ - ${PYTHON_PN}-distutils \
meta-python/recipes-devtools/python/python-pyroute2.inc line 26
Quoted 10 lines
meta-python/recipes-devtools/python/python-pyroute2.inc +0
-10- ${PYTHON_PN}-simplejson \ - ${PYTHON_PN}-multiprocessing \ - ${PYTHON_PN}-io ${PYTHON_PN}-pprint \ - ${PYTHON_PN}-pickle \ - ${PYTHON_PN}-logging \ - ${PYTHON_PN}-threading \ - ${PYTHON_PN}-textutils \ - ${PYTHON_PN}-subprocess \ - ${PYTHON_PN}-netclient \ -"
None of these other dependencies are needed for a minimal python install?
Quoted 59 lines
meta-python/recipes-devtools/python/python-pyroute2.inc +3
-0+RDEPENDS_${PN} += " \ + ${PYTHON_PN}-json \ + "(quoted diff) +0
-0
pyroute2/import-simplejson-as-json.patchb/meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patchdeleted file mode 100644
index d73da07..0000000
--- a/meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch
+++/dev/nullmeta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch deleted +0
-13@@ -1,26 +0,0 @@ -Upstream-Status: Inappropriate [wrong dependency] - -Subject: [PATCH] import simplejson as json - -At runtime python-pyroute2 tries to import json, but the module is not -available, import simplejson as json solve the issue. - -Signed-off-by: Fabio Berton <[email protected]> ---- - pyroute2/netlink/rtnl/ifinfmsg.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pyroute2/netlink/rtnl/ifinfmsg.py b/pyroute2/netlink/rtnl/
ifinfmsg.pymeta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch deleted +0
-13-index 4f14f25..55643eb 100644 ---- a/pyroute2/netlink/rtnl/ifinfmsg.py -+++ b/pyroute2/netlink/rtnl/ifinfmsg.py -@@ -1,5 +1,5 @@ - import os --import json -+import simplejson as json - import errno - import select - import struct --- -2.1.4 -meta-python/recipes-devtools/python/python-pyroute2_0.4.21.bb renamed from meta-python/recipes-devtools/python/python-pyroute2_0.3.22.bb +0
-0(quoted diff) +0
-0pyroute2_0.3.22.bb b/meta-python/recipes-devtools/python/python3- pyroute2_0.4.21.bb
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pyroute2_0.3.22.bb rename to meta-python/recipes-devtools/python/python3-pyroute2_0.4.21.bb --
2.7.4--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 38 lines · Derek Straka
Quoted 35 lines · Mark Asselstine
Drop the json<-->simplejson patch instead opting to depend on python-json (part of core python libs). Beyond this the uprev is straightforward.
Signed-off-by Mark Asselstine <[email protected]>--- .../recipes-devtools/python/python-pyroute2.inc | 23 +++++-------------- .../import-simplejson-as-json.patch | 26 ---------------------- ...yroute2_0.3.22.bb => python-pyroute2_0.4.21.bb} | 0 ...route2_0.3.22.bb => python3-pyroute2_0.4.21.bb} | 0 4 files changed, 6 insertions(+), 43 deletions(-) delete mode 100644 meta-python/recipes-devtools/ python/python-pyroute2/import-simplejson-as-json.patch rename meta-python/recipes-devtools/python/{python-pyroute2_0.3.22.bb => python-pyroute2_0.4.21.bb} (100%) rename meta-python/recipes-devtools/python/{python3-pyroute2_0.3.22.bb=> python3-pyroute2_0.4.21.bb} (100%)
meta-python/recipes-devtools/python/python-pyroute2.inc +0
-1@@ -1,26 +1,15 @@ SUMMARY = "A pure Python netlink and Linux network configuration library" LICENSE = "GPLv2 & Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE.GPL.v2;md5= b234ee4d69f5fce4486a80fdaf4a4263 \ - file://LICENSE.Apache.v2;md5=
3b83ef96387f14655fc854ddc3c6bd57"
+ file://LICENSE.Apache.v2;md5=34281e312165f843a2b7d1f114fe65ce"
Quoted 13 lines
Quoted 10 lines
meta-python/recipes-devtools/python/python-pyroute2.inc +0
-2-SRC_URI[md5sum] = "733adb362b6603c7269c0b3df3045a55" -SRC_URI[sha256sum] = "5cdf44656cf623369f0cbf183d9d14
a1a50ebdffbd50d4e30ffda62c0a05d7b3"meta-python/recipes-devtools/python/python-pyroute2.inc +2
-2- -SRC_URI += "file://import-simplejson-as-json.patch" +SRC_URI[md5sum] = "9c251543c4282a2f8b1a8d6aa8afc688" +SRC_URI[sha256sum] = "7afad28ee0a0f3e7c34adaa9f953d0
0560ed9910203e93f107833b6e8d151171"Can we remove the extra path prepend now?
Quoted 1 line
FILESEXTRAPATHS_prepend:= "${THISDIR}/python-pyroute2:"
Sure. I will send a V2 once we get agreement on the RDEPENDS.
Quoted 5 lines
meta-python/recipes-devtools/python/python-pyroute2.inc line 16
Quoted 5 lines
inherit pypi
meta-python/recipes-devtools/python/python-pyroute2.inc +0
-2-RDEPENDS_${PN} += "\ - ${PYTHON_PN}-distutils \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-simplejson \
per the commit log, use json instead to match upstream expectations.
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-multiprocessing \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-io ${PYTHON_PN}-pprint \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-pickle \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-logging \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-threading \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-textutils \
No reference in this version of pyroute2
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-subprocess \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-netclient \
No reference in this version of pyroute2
Quoted 3 lines
Quoted 2 lines
-"
None of these other dependencies are needed for a minimal python install?
Sorry, I should have covered this in my commit log. This was a mistake on my part but was intentional since these are all stdlib modules as I have show above and as is described in the the pyroute2 README:
"Pyroute2 is a pure Python **netlink** library. It requires only Python stdlib"
All stdlib modules are listed as RDEPENDS in python[3]-modules so we are only making work for ourselves breaking these out here. I will put them back but if we go this route, of listed stdlib RDEPENDS, then there is a lot of work to ensure this is consistent across all our python recipes.
Mark
Quoted 65 lines
Quoted 54 lines
meta-python/recipes-devtools/python/python-pyroute2.inc +3
-0+RDEPENDS_${PN} += " \ + ${PYTHON_PN}-json \ + "(quoted diff) +0
-0
pyroute2/import-simplejson-as-json.patchb/meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patchdeleted file mode 100644
index d73da07..0000000
--- a/meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch
+++/dev/nullmeta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch deleted +0
-13@@ -1,26 +0,0 @@ -Upstream-Status: Inappropriate [wrong dependency] - -Subject: [PATCH] import simplejson as json - -At runtime python-pyroute2 tries to import json, but the module is not -available, import simplejson as json solve the issue. - -Signed-off-by: Fabio Berton <[email protected]> ---- - pyroute2/netlink/rtnl/ifinfmsg.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pyroute2/netlink/rtnl/ifinfmsg.py b/pyroute2/netlink/rtnl/
ifinfmsg.pymeta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch deleted +0
-13-index 4f14f25..55643eb 100644 ---- a/pyroute2/netlink/rtnl/ifinfmsg.py -+++ b/pyroute2/netlink/rtnl/ifinfmsg.py -@@ -1,5 +1,5 @@ - import os --import json -+import simplejson as json - import errno - import select - import struct --- -2.1.4 -meta-python/recipes-devtools/python/python-pyroute2_0.4.21.bb renamed from meta-python/recipes-devtools/python/python-pyroute2_0.3.22.bb +0
-0(quoted diff) +0
-0pyroute2_0.3.22.bb b/meta-python/recipes-devtools/python/python3- pyroute2_0.4.21.bb
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pyroute2_0.3.22.bb rename to meta-python/recipes-devtools/python/python3-pyroute2_0.4.21.bb --
2.7.4Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
All our python recipes should be explicitly listing the python module packages they require. No python module recipes should be depending on python-modules or python3-modules, but explicitly what they require.
Quoted 199 lines · Mark Asselstine
Quoted 7 lines · Derek Straka
Quoted 4 lines · Mark Asselstine
Drop the json<-->simplejson patch instead opting to depend on python-json (part of core python libs). Beyond this the uprev is straightforward.
Quoted 12 lines
Quoted 12 lines
Signed-off-by Mark Asselstine <[email protected]>--- .../recipes-devtools/python/python-pyroute2.inc | 23 +++++-------------- .../import-simplejson-as-json.patch | 26 ---------------------- ...yroute2_0.3.22.bb => python-pyroute2_0.4.21.bb} | 0 ...route2_0.3.22.bb => python3-pyroute2_0.4.21.bb} | 0 4 files changed, 6 insertions(+), 43 deletions(-) delete mode 100644 meta-python/recipes-devtools/ python/python-pyroute2/import-simplejson-as-json.patch rename meta-python/recipes-devtools/python/{python-pyroute2_0.3.22.bb=>
Quoted 11 lines
meta-python/recipes-devtools/python/python-pyroute2.inc line 1
Quoted 11 lines
python-pyroute2_0.4.21.bb} (100%)
rename meta-python/recipes-devtools/python/{python3-pyroute2_0.3.22.bb=> python3-pyroute2_0.4.21.bb} (100%)
meta-python/recipes-devtools/python/python-pyroute2.inc +0
-0@@ -1,26 +1,15 @@ SUMMARY = "A pure Python netlink and Linux network configurationlibrary"
Quoted 8 lines
Quoted 8 lines
meta-python/recipes-devtools/python/python-pyroute2.inc +0
-1LICENSE = "GPLv2 & Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE.GPL.v2;md5= b234ee4d69f5fce4486a80fdaf4a4263 \ - file://LICENSE.Apache.v2;md5=
3b83ef96387f14655fc854ddc3c6bd57"
+ file://LICENSE.Apache.v2;md5=34281e312165f843a2b7d1f114fe65ce"Quoted 13 lines
Quoted 10 lines
meta-python/recipes-devtools/python/python-pyroute2.inc +0
-2-SRC_URI[md5sum] = "733adb362b6603c7269c0b3df3045a55" -SRC_URI[sha256sum] = "5cdf44656cf623369f0cbf183d9d14
a1a50ebdffbd50d4e30ffda62c0a05d7b3"meta-python/recipes-devtools/python/python-pyroute2.inc +2
-2- -SRC_URI += "file://import-simplejson-as-json.patch" +SRC_URI[md5sum] = "9c251543c4282a2f8b1a8d6aa8afc688" +SRC_URI[sha256sum] = "7afad28ee0a0f3e7c34adaa9f953d0
0560ed9910203e93f107833b6e8d151171"Can we remove the extra path prepend now?
Quoted 1 line
FILESEXTRAPATHS_prepend:= "${THISDIR}/python-pyroute2:"Sure. I will send a V2 once we get agreement on the RDEPENDS.
Quoted 5 lines
meta-python/recipes-devtools/python/python-pyroute2.inc line 16
Quoted 5 lines
inherit pypi
meta-python/recipes-devtools/python/python-pyroute2.inc +0
-2-RDEPENDS_${PN} += "\ - ${PYTHON_PN}-distutils \stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-simplejson \
per the commit log, use json instead to match upstream expectations.
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-multiprocessing \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-io ${PYTHON_PN}-pprint \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-pickle \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-logging \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-threading \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-textutils \
No reference in this version of pyroute2
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-subprocess \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-netclient \
No reference in this version of pyroute2
Quoted 3 lines
Quoted 2 lines
-"
None of these other dependencies are needed for a minimal python install?
Sorry, I should have covered this in my commit log. This was a mistake on my
part but was intentional since these are all stdlib modules as I have show above and as is described in the the pyroute2 README:
"Pyroute2 is a pure Python **netlink** library. It requires only Python stdlib"All stdlib modules are listed as RDEPENDS in python[3]-modules so we are only making work for ourselves breaking these out here. I will put them back
but if we go this route, of listed stdlib RDEPENDS, then there is a lot of work
to ensure this is consistent across all our python recipes.Mark
Quoted 18 lines
Quoted 18 lines
meta-python/recipes-devtools/python/python-pyroute2.inc +3
-0+RDEPENDS_${PN} += " \ + ${PYTHON_PN}-json \ + "(quoted diff) +0
-0
pyroute2/import-simplejson-as-json.patchb/meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patchdeleted file mode 100644
index d73da07..0000000
--- a/meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch
+++/dev/nullmeta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch deleted +0
-5@@ -1,26 +0,0 @@ -Upstream-Status: Inappropriate [wrong dependency] - -Subject: [PATCH] import simplejson as json - -At runtime python-pyroute2 tries to import json, but the module is notQuoted 8 lines
meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch
Quoted 8 lines
meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch deleted +0
-8-available, import simplejson as json solve the issue. - -Signed-off-by: Fabio Berton <[email protected]> ---- - pyroute2/netlink/rtnl/ifinfmsg.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pyroute2/netlink/rtnl/ifinfmsg.pyb/pyroute2/netlink/rtnl/
Quoted 7 lines
Quoted 7 lines
ifinfmsg.py
-index 4f14f25..55643eb 100644
----a/pyroute2/netlink/rtnl/ifinfmsg.py
-+++b/pyroute2/netlink/rtnl/ifinfmsg.py
-@@ -1,5 +1,5 @@
- import os
--import jsonQuoted 8 lines
Review
Quoted 8 lines
-+import simplejson as json
- import errno
- import select
- import struct
---
-2.1.4(quoted diff) +0
-1-(quoted diff) +0
-0pyroute2_0.3.22.bb
Quoted 3 lines
Quoted 3 lines
b/meta-python/recipes-devtools/python/python-pyroute2_0.4.21.bb similarity index 100%
rename from meta-python/recipes-devtools/python/python-pyroute2_0.3.22.bb
Quoted 6 lines
Quoted 6 lines
rename to meta-python/recipes-devtools/python/python-pyroute2_0.4.21.bb
(quoted diff) +0
-0pyroute2_0.3.22.bb b/meta-python/recipes-devtools/python/python3- pyroute2_0.4.21.bb
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pyroute2_0.3.22.bb
Quoted 1 line
Quoted 1 line
rename to meta-python/recipes-devtools/python/python3-pyroute2_0.4.
21.bb
Quoted 9 lines
Quoted 9 lines
--
2.7.4--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-develQuoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 4 lines
Christopher Larson kergoth at gmail dot com Founder - BitBake, OpenEmbedded, OpenZaurus Senior Software Engineer, Mentor Graphics
Quoted 3 lines · Christopher Larson
All our python recipes should be explicitly listing the python module packages they require. No python module recipes should be depending on python-modules or python3-modules, but explicitly what they require.
This is a giant PITA for little gain in my opinion. The typical python 'vehicles' to define dependencies, things like setup.py, requires.txt, requirements.txt..., never bother to list stdlibs. These are standard libs that are just expected to be there. If a system is being installed with only select python modules it will behave differently than python found on any other system violating the rule of least surprise. On top of this most of these modules are ~40K in size and there are roughly 60 in the stdlib so the size gain in installing a few vs. all of them is extremely negligible. All of this seems to add way more work and churn that outweighs any real benefit.
Mark
Quoted 216 lines
Quoted 193 lines · Mark Asselstine
Quoted 7 lines · Derek Straka
Quoted 4 lines · Mark Asselstine
Drop the json<-->simplejson patch instead opting to depend on python-json (part of core python libs). Beyond this the uprev is straightforward.
Quoted 12 lines
Quoted 12 lines
Signed-off-by Mark Asselstine <[email protected]>--- .../recipes-devtools/python/python-pyroute2.inc | 23 +++++-------------- .../import-simplejson-as-json.patch | 26 ---------------------- ...yroute2_0.3.22.bb => python-pyroute2_0.4.21.bb} | 0 ...route2_0.3.22.bb => python3-pyroute2_0.4.21.bb} | 0 4 files changed, 6 insertions(+), 43 deletions(-) delete mode 100644 meta-python/recipes-devtools/ python/python-pyroute2/import-simplejson-as-json.patch rename meta-python/recipes-devtools/python/{python-pyroute2_0.3.22.bb=>
Quoted 11 lines
meta-python/recipes-devtools/python/python-pyroute2.inc line 1
Quoted 11 lines
python-pyroute2_0.4.21.bb} (100%)
rename meta-python/recipes-devtools/python/{python3-pyroute2_0.3.22.bb=> python3-pyroute2_0.4.21.bb} (100%)
meta-python/recipes-devtools/python/python-pyroute2.inc +0
-0@@ -1,26 +1,15 @@ SUMMARY = "A pure Python netlink and Linux network configurationlibrary"
Quoted 8 lines
Quoted 8 lines
meta-python/recipes-devtools/python/python-pyroute2.inc +0
-1LICENSE = "GPLv2 & Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE.GPL.v2;md5= b234ee4d69f5fce4486a80fdaf4a4263 \ - file://LICENSE.Apache.v2;md5=
3b83ef96387f14655fc854ddc3c6bd57"
+ file://LICENSE.Apache.v2;md5=34281e312165f843a2b7d1f114fe65ce"Quoted 13 lines
Quoted 10 lines
meta-python/recipes-devtools/python/python-pyroute2.inc +0
-2-SRC_URI[md5sum] = "733adb362b6603c7269c0b3df3045a55" -SRC_URI[sha256sum] = "5cdf44656cf623369f0cbf183d9d14
a1a50ebdffbd50d4e30ffda62c0a05d7b3"meta-python/recipes-devtools/python/python-pyroute2.inc +2
-2- -SRC_URI += "file://import-simplejson-as-json.patch" +SRC_URI[md5sum] = "9c251543c4282a2f8b1a8d6aa8afc688" +SRC_URI[sha256sum] = "7afad28ee0a0f3e7c34adaa9f953d0
0560ed9910203e93f107833b6e8d151171"Can we remove the extra path prepend now?
Quoted 1 line
FILESEXTRAPATHS_prepend:= "${THISDIR}/python-pyroute2:"Sure. I will send a V2 once we get agreement on the RDEPENDS.
Quoted 5 lines
meta-python/recipes-devtools/python/python-pyroute2.inc line 16
Quoted 5 lines
inherit pypi
meta-python/recipes-devtools/python/python-pyroute2.inc +0
-2-RDEPENDS_${PN} += "\ - ${PYTHON_PN}-distutils \stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-simplejson \
per the commit log, use json instead to match upstream expectations.
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-multiprocessing \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-io ${PYTHON_PN}-pprint \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-pickle \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-logging \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-threading \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-textutils \
No reference in this version of pyroute2
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-subprocess \
stdlib
Quoted 1 line
Quoted 1 line
- ${PYTHON_PN}-netclient \
No reference in this version of pyroute2
Quoted 3 lines
Quoted 2 lines
-"
None of these other dependencies are needed for a minimal python install?
Sorry, I should have covered this in my commit log. This was a mistake on my
part but was intentional since these are all stdlib modules as I have show above and as is described in the the pyroute2 README:
"Pyroute2 is a pure Python **netlink** library. It requires only Python stdlib"All stdlib modules are listed as RDEPENDS in python[3]-modules so we are only making work for ourselves breaking these out here. I will put them back
but if we go this route, of listed stdlib RDEPENDS, then there is a lot of work
to ensure this is consistent across all our python recipes.Mark
Quoted 18 lines
Quoted 18 lines
meta-python/recipes-devtools/python/python-pyroute2.inc +3
-0+RDEPENDS_${PN} += " \ + ${PYTHON_PN}-json \ + "(quoted diff) +0
-0
pyroute2/import-simplejson-as-json.patchb/meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patchdeleted file mode 100644
index d73da07..0000000
--- a/meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch
+++/dev/nullmeta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch deleted +0
-5@@ -1,26 +0,0 @@ -Upstream-Status: Inappropriate [wrong dependency] - -Subject: [PATCH] import simplejson as json - -At runtime python-pyroute2 tries to import json, but the module is notQuoted 8 lines
meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch
Quoted 8 lines
meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch deleted +0
-8-available, import simplejson as json solve the issue. - -Signed-off-by: Fabio Berton <[email protected]> ---- - pyroute2/netlink/rtnl/ifinfmsg.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pyroute2/netlink/rtnl/ifinfmsg.pyb/pyroute2/netlink/rtnl/
Quoted 7 lines
Quoted 7 lines
ifinfmsg.py
-index 4f14f25..55643eb 100644
----a/pyroute2/netlink/rtnl/ifinfmsg.py
-+++b/pyroute2/netlink/rtnl/ifinfmsg.py
-@@ -1,5 +1,5 @@
- import os
--import jsonQuoted 8 lines
Review
Quoted 8 lines
-+import simplejson as json
- import errno
- import select
- import struct
---
-2.1.4(quoted diff) +0
-1-(quoted diff) +0
-0pyroute2_0.3.22.bb
Quoted 3 lines
Quoted 3 lines
b/meta-python/recipes-devtools/python/python-pyroute2_0.4.21.bb similarity index 100%
rename from meta-python/recipes-devtools/python/python-pyroute2_0.3.22.bb
Quoted 6 lines
Quoted 6 lines
rename to meta-python/recipes-devtools/python/python-pyroute2_0.4.21.bb
(quoted diff) +0
-0pyroute2_0.3.22.bb b/meta-python/recipes-devtools/python/python3- pyroute2_0.4.21.bb
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pyroute2_0.3.22.bb
Quoted 1 line
Quoted 1 line
rename to meta-python/recipes-devtools/python/python3-pyroute2_0.4.
21.bb
Quoted 9 lines
Quoted 9 lines
--
2.7.4--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-develQuoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-develQuoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Senior Software Engineer, Mentor Graphics
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 5 lines · Mark Asselstine
Quoted 3 lines · Christopher Larson
All our python recipes should be explicitly listing the python module packages they require. No python module recipes should be depending on python-modules or python3-modules, but explicitly what they require.
Quoted 10 lines
This is a giant PITA for little gain in my opinion. The typical python 'vehicles' to define dependencies, things like
setup.py, requires.txt, requirements.txt..., never bother to list stdlibs. These are standard libs that are just expected to be there. If a system is being installed with only select python modules it will behave differently than python found on any other system violating the rule of least surprise. On top of this most of these modules are ~40K in size and there are roughly 60 in the stdlib so the size gain in installing a few vs. all of them is extremely negligible. All of this seems to add way more work and churn that outweighs any real benefit.
I tend to agree with this. Add also the situation that the yocto project needs to upgrade oe-core to python 3.6 as soon as possible, and to 3.7 soon after, no one has enough time to do this rather non-trivial job, and I'm beginning to wonder if the best way out is to remove the module splitting altogether, and write a clean, simple and maintainable python3 recipe from scratch with minimal amount of custom patching and hopefully no write-only hacks.
Alex
Quoted 30 lines · Alexander Kanavin
Quoted 9 lines · Mark Asselstine
Quoted 4 lines · Christopher Larson
All our python recipes should be explicitly listing the python module packages they require. No python module recipes should be depending on python-modules or python3-modules, but explicitly what they require.
Quoted 10 lines
This is a giant PITA for little gain in my opinion. The typical python 'vehicles' to define dependencies, things like
setup.py, requires.txt, requirements.txt..., never bother to list stdlibs. These are standard libs that are just expected to be there. If a system is being installed with only select python modules it will behave differently than python found on any other system violating the rule of least surprise. On top of this most of these modules are ~40K in size and there are roughly 60 in the stdlib so the size gain in installing a few vs. all of them is extremely negligible. All of this seems to add way more work and churn that outweighs any real benefit.I tend to agree with this. Add also the situation that the yocto project needs to upgrade oe-core to python 3.6 as soon as possible, and to 3.7 soon after, no one has enough time to do this rather non-trivial job, and I'm beginning to wonder if the best way out is to remove the module splitting altogether, and write a clean, simple and maintainable python3 recipe from scratch with minimal amount of custom patching and hopefully no write-only hacks.
Quoted 1 line
Alex
Thanks Alex for the support. To get a better idea as to what the size delta is I took the installed sizes from a rootfs logfile and the total size for all modules (python2.7) is 6.5M python-misc is almost 2M of this and python-codecs contributing over 0.5M. The savings will never be the full 6.5M as there will always be python-lang and some other modules needed. There was a time where 32M restrictions existed are some systems but are we really seeing devices with these restrictions any more? what about exploring not shipping the pyc files? I would much rather see this than imposing so much work and churn for very little gain. Anyways, maybe this isn't the best forum for this and it should be brought up to the architecture group.
Mark
Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
I have several customers who have optimized for space and would like to see the capability maintained unless core removes the ability to split python packages out. They also remove the *.py files in favor of *.pyo files (via a custom packaging mechanism). I have automated tests that go through the module importing on each of the meta-python packages to ensure it works on minimal python installations. When other contributors don't do provide that functionality, I either catch it when I do package update or when it breaks for one of my customers. I'm fine if you don't want to perform the checks yourself and it breaks my use case with missing dependencies, but I would prefer that you don't remove the dependencies that are currently in place. Thanks.
-Derek
Quoted 64 lines · Mark Asselstine
Quoted 23 lines · Alexander Kanavin
Quoted 10 lines · Mark Asselstine
On Mon, Dec 18, 2017 at 10:36 AM, Christopher Larson <[email protected]
Quoted 4 lines · wrote:
All our python recipes should be explicitly listing the python module packages they require. No python module recipes should be depending on python-modules or python3-modules, but explicitly what they require.
Quoted 10 lines
This is a giant PITA for little gain in my opinion. The typical python 'vehicles' to define dependencies, things like
setup.py, requires.txt, requirements.txt..., never bother to list stdlibs. These are standard libs that are just expected to be there. If a system is being installed with only select python modules it will behave differently than python found on any other system violating the rule of least surprise. On top of this most of these modules are ~40K in size and there are roughly 60 in the stdlib so the size gain in installing a few vs. all of them is extremely negligible. All of this seems to add way more work and churn that outweighs any real benefit.Quoted 2 lines
I tend to agree with this. Add also the situation that the yocto project needs to upgrade oe-core to python 3.6 as soon as possible, and to 3.7
soon
Quoted 3 lines
after, no one has enough time to do this rather non-trivial job, and I'm beginning to wonder if the best way out is to remove the module splitting altogether, and write a clean, simple and maintainable python3 recipe
from
Quoted 1 line
scratch with minimal amount of custom patching and hopefully no
write-only
Quoted 3 lines
hacks.
Alex
Thanks Alex for the support. To get a better idea as to what the size delta is I took the installed sizes from a rootfs logfile and the total size for all modules (python2.7) is 6.5M python-misc is almost 2M of this and python-codecs contributing over 0.5M. The savings will never be the full 6.5M as there will always be python-lang and some other modules needed. There was a time where 32M restrictions existed are some systems but are we really seeing devices with these restrictions any more? what about exploring not shipping the pyc files? I would much rather see this than imposing so much work and churn for very little gain. Anyways, maybe this isn't the best forum for this and it should be brought up to the architecture group.
Mark
Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 11 lines · Derek Straka
I have several customers who have optimized for space and would like to see the capability maintained unless core removes the ability to split python packages out. They also remove the *.py files in favor of *.pyo files (via a custom packaging mechanism). I have automated tests that go through the module importing on each of the meta-python packages to ensure it works on minimal python installations. When other contributors don't do provide that functionality, I either catch it when I do package update or when it breaks for one of my customers. I'm fine if you don't want to perform the checks yourself and it breaks my use case with missing dependencies, but I would prefer that you don't remove the dependencies that are currently in place. Thanks.
I can respect this approach. I will put the RDEPENDS back and send out a V2.
As for the overall approach being applied to all python recipes, my opinion still stands that this is such a small subset that we are devoting time better spent elsewhere to service the few.
Mark
Quoted 75 lines
-Derek
Quoted 58 lines · Mark Asselstine
Quoted 23 lines · Alexander Kanavin
Quoted 10 lines · Mark Asselstine
On Mon, Dec 18, 2017 at 10:36 AM, Christopher Larson <[email protected]
Quoted 4 lines · wrote:
All our python recipes should be explicitly listing the python module packages they require. No python module recipes should be depending on python-modules or python3-modules, but explicitly what they require.
Quoted 10 lines
This is a giant PITA for little gain in my opinion. The typical python 'vehicles' to define dependencies, things like
setup.py, requires.txt, requirements.txt..., never bother to list stdlibs. These are standard libs that are just expected to be there. If a system is being installed with only select python modules it will behave differently than python found on any other system violating the rule of least surprise. On top of this most of these modules are ~40K in size and there are roughly 60 in the stdlib so the size gain in installing a few vs. all of them is extremely negligible. All of this seems to add way more work and churn that outweighs any real benefit.Quoted 2 lines
I tend to agree with this. Add also the situation that the yocto project needs to upgrade oe-core to python 3.6 as soon as possible, and to 3.7
soon
Quoted 3 lines
after, no one has enough time to do this rather non-trivial job, and I'm beginning to wonder if the best way out is to remove the module splitting altogether, and write a clean, simple and maintainable python3 recipe
from
Quoted 1 line
scratch with minimal amount of custom patching and hopefully no
write-only
Quoted 3 lines
hacks.
Alex
Thanks Alex for the support. To get a better idea as to what the size delta is I took the installed sizes from a rootfs logfile and the total size for all modules (python2.7) is 6.5M python-misc is almost 2M of this and python-codecs contributing over 0.5M. The savings will never be the full 6.5M as there will always be python-lang and some other modules needed. There was a time where 32M restrictions existed are some systems but are we really seeing devices with these restrictions any more? what about exploring not shipping the pyc files? I would much rather see this than imposing so much work and churn for very little gain. Anyways, maybe this isn't the best forum for this and it should be brought up to the architecture group.
Mark
Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-develQuoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 11 lines · Derek Straka
I have several customers who have optimized for space and would like to see the capability maintained unless core removes the ability to split python packages out. They also remove the *.py files in favor of *.pyo files (via a custom packaging mechanism). I have automated tests that go through the module importing on each of the meta-python packages to ensure it works on minimal python installations. When other contributors don't do provide that functionality, I either catch it when I do package update or when it breaks for one of my customers. I'm fine if you don't want to perform the checks yourself and it breaks my use case with missing dependencies, but I would prefer that you don't remove the dependencies that are currently in place. Thanks.
Me too -- some of my projects still use NAND for rootfs, where space is tight and ability to split out python modules is very useful. Thus it is not an unused feature, though many projects have SD/eMMC for rootfs and those ones generally will not care about it.
I also need to look at the UPSTREAM_CHECK_URI for this recipe since it isn't finding the latest version and telling me to update the package.
Quoted 27 lines · S. Lockwood-Childs
Quoted 1 line · Derek Straka
I have several customers who have optimized for space and would like to
see
Quoted 2 lines
the capability maintained unless core removes the ability to split python packages out. They also remove the *.py files in favor of *.pyo files
(via
Quoted 1 line
a custom packaging mechanism). I have automated tests that go through
the
Quoted 1 line
module importing on each of the meta-python packages to ensure it works
on
Quoted 3 lines
minimal python installations. When other contributors don't do provide that functionality, I either catch it when I do package update or when it breaks for one of my customers. I'm fine if you don't want to perform
the
Quoted 1 line
checks yourself and it breaks my use case with missing dependencies, but
I
Quoted 2 lines
would prefer that you don't remove the dependencies that are currently in place. Thanks.
Me too -- some of my projects still use NAND for rootfs, where space is tight and
ability to split out python modules is very useful. Thus it is not an unused
feature, though many projects have SD/eMMC for rootfs and those ones generally
will not care about it.
Quoted 2 lines · EST Derek Straka
I also need to look at the
UPSTREAM_CHECK_URIfor this recipe since it isn't finding the latest version and telling me to update the package.
Odd. Let me know how it goes. If it is easier for you to make the changes locally and complete the merge go for it.
Mark
Quoted 43 lines · S. Lockwood-Childs
Quoted 41 lines · Derek Straka
Quoted 1 line
I have several customers who have optimized for space and would like to
see
Quoted 3 lines
the capability maintained unless core removes the ability to split python
packages out. They also remove the *.py files in favor of *.pyo files(via
Quoted 1 line
a custom packaging mechanism). I have automated tests that go through
the
Quoted 1 line
module importing on each of the meta-python packages to ensure it works
on
Quoted 4 lines
minimal python installations. When other contributors don't do provide that functionality, I either catch it when I do package update or when it
breaks for one of my customers. I'm fine if you don't want to performthe
Quoted 1 line
checks yourself and it breaks my use case with missing dependencies, but
I
Quoted 3 lines
would prefer that you don't remove the dependencies that are currently in
place. Thanks.Me too -- some of my projects still use NAND for rootfs, where space is tight and
ability to split out python modules is very useful. Thus it is not an unused
feature, though many projects have SD/eMMC for rootfs and those ones generally
will not care about it.
Go ahead and do a v2, it was more of a reminder for me.
Quoted 64 lines · Mark Asselstine
Quoted 2 lines · EST Derek Straka
I also need to look at the
UPSTREAM_CHECK_URIfor this recipe since it isn't finding the latest version and telling me to update the package.Odd. Let me know how it goes. If it is easier for you to make the changes locally and complete the merge go for it.
Mark
Quoted 2 lines
On Mon, Dec 18, 2017 at 4:02 PM, S. Lockwood-Childs <[email protected]>
Quoted 2 lines · wrote:
Quoted 2 lines · Derek Straka
Quoted 1 line
I have several customers who have optimized for space and would like
to
Quoted 6 lines
Quoted 6 lines
see
Quoted 3 lines
the capability maintained unless core removes the ability to split python
packages out. They also remove the *.py files in favor of *.pyofiles
Quoted 4 lines
Quoted 4 lines
(via
Quoted 1 line
a custom packaging mechanism). I have automated tests that go
through
Quoted 4 lines
Quoted 4 lines
the
Quoted 1 line
module importing on each of the meta-python packages to ensure it
works
Quoted 4 lines
Quoted 4 lines
on
Quoted 1 line
minimal python installations. When other contributors don't do
provide
Quoted 1 line
Quoted 1 line
Quoted 1 line
that functionality, I either catch it when I do package update or
when
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
it
breaks for one of my customers. I'm fine if you don't want toperform
Quoted 4 lines
Quoted 4 lines
the
Quoted 1 line
checks yourself and it breaks my use case with missing dependencies,
but
Quoted 4 lines
Quoted 4 lines
I
Quoted 1 line
would prefer that you don't remove the dependencies that are
currently
Quoted 10 lines
Quoted 10 lines
Quoted 2 lines
in
place. Thanks.Me too -- some of my projects still use NAND for rootfs, where space is tight and
ability to split out python modules is very useful. Thus it is not an unused
feature, though many projects have SD/eMMC for rootfs and those ones generally
will not care about it.
splitting python's standard library
In reply to S. Lockwood-ChildsQuoted 13 lines · S. Lockwood-Childs
Quoted 11 lines · Derek Straka
I have several customers who have optimized for space and would like to see the capability maintained unless core removes the ability to split python packages out. They also remove the *.py files in favor of *.pyo files (via a custom packaging mechanism). I have automated tests that go through the module importing on each of the meta-python packages to ensure it works on minimal python installations. When other contributors don't do provide that functionality, I either catch it when I do package update or when it breaks for one of my customers. I'm fine if you don't want to perform the checks yourself and it breaks my use case with missing dependencies, but I would prefer that you don't remove the dependencies that are currently in place. Thanks.
Quoted 4 lines
Me too -- some of my projects still use NAND for rootfs, where space is tight and ability to split out python modules is very useful. Thus it is not an unused feature, though many projects have SD/eMMC for rootfs and those ones generally will not care about it.
This configuration can be supported by making a custom python3-modules package that whitelists precisely the needed files. But it shouldn't be imposed on everyone else - it's a significant burden to maintain the dependencies in every single python package, and keep the splitting working correctly in core python as well.
So I'd like to drop that - do keep in mind that very few people maintain oe-core (as opposed to sending occasional drive-by patches to fix specific issues raised in product development), and the headcount keeps getting smaller.
Alex
Re: splitting python's standard library
Well, I've been able to do it just fine for the majority of packages in meta-python by myself. Since I contribute the majority of the patches and maintain the layer, I want this capability maintained in meta-python. If you plan on removing that functionality in oe-core, I'd like to have the opportunity to maintain the python recipes there as well rather than have a feature unilaterally removed. I don't consider it a burden and my customers find it valuable to split things out.
On Dec 19, 2017 2:55 AM, "Alexander Kanavin" <
[email protected]> wrote:
Quoted 17 lines · S. Lockwood-Childs
Quoted 5 lines · Derek Straka
I have several customers who have optimized for space and would like to see
the capability maintained unless core removes the ability to split python packages out. They also remove the *.py files in favor of *.pyo files (viaQuoted 9 lines
a custom packaging mechanism). I have automated tests that go through the module importing on each of the meta-python packages to ensure it works on minimal python installations. When other contributors don't do provide that functionality, I either catch it when I do package update or when it breaks for one of my customers. I'm fine if you don't want to perform the checks yourself and it breaks my use case with missing dependencies, but I would prefer that you don't remove the dependencies that are currently in place. Thanks.
Quoted 8 lines
Me too -- some of my projects still use NAND for rootfs, where space is tight and
ability to split out python modules is very useful. Thus it is not an unused
feature, though many projects have SD/eMMC for rootfs and those ones generally
will not care about it.
This configuration can be supported by making a custom python3-modules package that whitelists precisely the needed files. But it shouldn't be imposed on everyone else - it's a significant burden to maintain the dependencies in every single python package, and keep the splitting working correctly in core python as well.
So I'd like to drop that - do keep in mind that very few people maintain oe-core (as opposed to sending occasional drive-by patches to fix specific issues raised in product development), and the headcount keeps getting smaller.
Alex
Re: splitting python's standard library
Quoted 1 line · Derek Straka
Well, I've been able to do it just fine for the majority of packages in meta-python by myself. Since I contribute the majority of the patches and maintain the layer, I want this capability maintained in meta-python. If you plan on removing that functionality in oe-core, I'd like to have the opportunity to maintain the python recipes there as well rather than have a feature unilaterally removed. I don't consider it a burden and my customers find it valuable to split things out.
If you're able to take over the maintenance of oe-core's python packages, then that's great and much appreciated! I'll send a patch that assigns them to you in a moment.
Alex
Re: splitting python's standard library
Cool. Works for me. Thanks.
-Derek
Quoted 17 lines · Alexander Kanavin
Quoted 8 lines · Derek Straka
Well, I've been able to do it just fine for the majority of packages in meta-python by myself. Since I contribute the majority of the patches and maintain the layer, I want this capability maintained in meta-python. If you plan on removing that functionality in oe-core, I'd like to have the opportunity to maintain the python recipes there as well rather than have a feature unilaterally removed. I don't consider it a burden and my customers find it valuable to split things out.
If you're able to take over the maintenance of oe-core's python packages, then that's great and much appreciated! I'll send a patch that assigns them to you in a moment.
Alex
Re: [oe] splitting python's standard library
Quoted 2 lines · Derek Straka
Cool. Works for me. Thanks.
There's an epic patch on the list which I'm reviewing right now that drastically changes how the core Python library is packaged. If you'd like to have a look, the almost-final (my bandaid fixes need to be squashed) is at poky-contrib:ross/py.
Ross
Re: [oe] splitting python's standard library
Thanks for the heads up. I'll pull the changeset into my testing branch and touch up all the meta-python recipes to remove the now non-existent packages.
Quoted 12 lines · Ross
Quoted 2 lines · Derek Straka
Cool. Works for me. Thanks.
There's an epic patch on the list which I'm reviewing right now that drastically changes how the core Python library is packaged. If you'd like to have a look, the almost-final (my bandaid fixes need to be squashed) is at poky-contrib:ross/py.
Ross
Re: [oe] splitting python's standard library
Let me know when this is ready to get merged into master-next. I have a patchset on my github for all the python recipes in meta-oe that need updating based on the deprecated python{3} packages. I can submit it to the ML at that point. Thanks.
-Derek
Quoted 21 lines · Derek Straka
Thanks for the heads up. I'll pull the changeset into my testing branch and touch up all the meta-python recipes to remove the now non-existent packages.
Quoted 12 lines · Ross
Quoted 2 lines · Derek Straka
Cool. Works for me. Thanks.
There's an epic patch on the list which I'm reviewing right now that drastically changes how the core Python library is packaged. If you'd like to have a look, the almost-final (my bandaid fixes need to be squashed) is at poky-contrib:ross/py.
Ross