package/python-autobahn: bump to version 20.4.3
PATCH 1/1 package/python-autobahn: bump to version 20.4.3
Autobahn recently added a feature called xbr which we don't support, let's remove this before building autobahn.
--- package/python-autobahn/python-autobahn.hash | 4 ++-- package/python-autobahn/python-autobahn.mk | 16 ++++++++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-)
package/python-autobahn/python-autobahn.hash +2 -2
@@ -1,5 +1,5 @@ # md5, sha256 from https://pypi.org/pypi/autobahn/json -md5 9702594ee1c5613e9bb31af105140b5b autobahn-20.4.2.tar.gz -sha256 1c943f94bb759c07445a6984a3bc4c76f73e2a90a1fc2c3521c211579b73d3db autobahn-20.4.2.tar.gz +md5 dcae3cf26203aa4bbd9912137e5c9512 autobahn-20.4.3.tar.gz +sha256 c6fe745d52ba9f9eecf791cd31f558df42aebfc4f9ee558a8f1d18c707e1ae1f autobahn-20.4.3.tar.gz # Locally computed sha256 checksums sha256 0387eefce570453daaa60633f28676003731eeca28b2d0a0071c628e3a0004ef LICENSE
package/python-autobahn/python-autobahn.mk +14 -2
@@ -4,11 +4,23 @@ # ################################################################################ -PYTHON_AUTOBAHN_VERSION = 20.4.2 +PYTHON_AUTOBAHN_VERSION = 20.4.3 PYTHON_AUTOBAHN_SOURCE = autobahn-$(PYTHON_AUTOBAHN_VERSION).tar.gz -PYTHON_AUTOBAHN_SITE = https://files.pythonhosted.org/packages/13/0e/b182b46ea437e59003de78c68bb00824d304dcfe58e7235f29c4f275eca0 +PYTHON_AUTOBAHN_SITE = https://files.pythonhosted.org/packages/cb/16/38d27874ef827974f44acb6dd64a92a9248b624734c0e84b91083c2d9350 PYTHON_AUTOBAHN_LICENSE = MIT PYTHON_AUTOBAHN_LICENSE_FILES = LICENSE PYTHON_AUTOBAHN_SETUP_TYPE = setuptools +define PYTHON_AUTOBAHN_REMOVE_XBR + rm -rf $(@D)/autobahn/xbr + rm -f $(@D)/autobahn/asyncio/xbr.py + rm -f $(@D)/autobahn/twisted/xbr.py + sed -i -e "/'autobahn\.xbr',/d" $(@D)/setup.py + sed -i -e "/'xbr': \['\.\/xbr\/contracts\/\*\.json'\],/d" $(@D)/setup.py + sed -i -e '/"xbrnetwork = autobahn\.xbr\._cli:_main",/d' $(@D)/setup.py + sed -i -e '/xbr/d' $(@D)/MANIFEST.in +endef + +PYTHON_AUTOBAHN_POST_EXTRACT_HOOKS = PYTHON_AUTOBAHN_REMOVE_XBR + $(eval $(python-package))
Signature · 1 line
2.20.1
PATCH 1/1 package/python-autobahn: bump to version 20.4.3
Quoted 2 lines · On Fri, 24 Apr 2020 16:47:52 -0600 James Hilliard <[email protected]>…
Autobahn recently added a feature called xbr which we don't support, let's remove this before building autobahn.
Why don't we support it? Can it be made optional in a way that is acceptable upstream?
package/python-autobahn/python-autobahn.mk line 22
Quoted 9 lines
package/python-autobahn/python-autobahn.mk +9
-0+define PYTHON_AUTOBAHN_REMOVE_XBR + rm -rf $(@D)/autobahn/xbr + rm -f $(@D)/autobahn/asyncio/xbr.py + rm -f $(@D)/autobahn/twisted/xbr.py + sed -i -e "/'autobahn\.xbr',/d" $(@D)/setup.py + sed -i -e "/'xbr': \['\.\/xbr\/contracts\/\*\.json'\],/d" $(@D)/setup.py + sed -i -e '/"xbrnetwork = autobahn\.xbr\._cli:_main",/d' $(@D)/setup.py + sed -i -e '/xbr/d' $(@D)/MANIFEST.in +endef
Urgh, we want a patch, not tweaks like that. I guess perhaps the patch doesn't need to remove the actual source files, just remove the handling in setup.py.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 package/python-autobahn: bump to version 20.4.3
Quoted 9 lines · Thomas Petazzoni
Quoted 2 lines · On Fri, 24 Apr 2020 16:47:52 -0600 James Hilliard <[email protected]>…
Autobahn recently added a feature called xbr which we don't support, let's remove this before building autobahn.
Why don't we support it? Can it be made optional in a way that is acceptable upstream?
This feature is very dependency heavy to begin with(we don't have buildroot packages for most) and not relevant to most autobahn use cases.
I just got something merged upstream which should simplify stripping xbr however.
Quoted 14 lines
package/python-autobahn/python-autobahn.mk line 22
Quoted 10 lines
package/python-autobahn/python-autobahn.mk +9
-0+define PYTHON_AUTOBAHN_REMOVE_XBR + rm -rf $(@D)/autobahn/xbr + rm -f $(@D)/autobahn/asyncio/xbr.py + rm -f $(@D)/autobahn/twisted/xbr.py + sed -i -e "/'autobahn\.xbr',/d" $(@D)/setup.py + sed -i -e "/'xbr': \['\.\/xbr\/contracts\/\*\.json'\],/d" $(@D)/setup.py + sed -i -e '/"xbrnetwork = autobahn\.xbr\._cli:_main",/d' $(@D)/setup.py + sed -i -e '/xbr/d' $(@D)/MANIFEST.in +endefUrgh, we want a patch, not tweaks like that. I guess perhaps the patch doesn't need to remove the actual source files, just remove the handling in
setup.py.
I'll respin this once upstream has a new release with the ENV variable I added that strips xbr during installation, not stripping xbr results in a fairly large target size increase, nearly 10MB from the looks of it.
Quoted 8 lines
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
PATCH 1/1 package/python-autobahn: bump to version 20.4.3
Hello James,
Quoted 5 lines · On Sat, 25 Apr 2020 13:31:31 -0600 James Hilliard <[email protected]>…
Quoted 2 lines
Why don't we support it? Can it be made optional in a way that is acceptable upstream?
This feature is very dependency heavy to begin with(we don't have buildroot packages for most) and not relevant to most autobahn use cases.
OK.
Quoted 2 lines
I just got something merged upstream which should simplify stripping xbr however.
Would be good, indeed.
Quoted 6 lines
Quoted 3 lines
Urgh, we want a patch, not tweaks like that. I guess perhaps the patch doesn't need to remove the actual source files, just remove the handling in
setup.py.I'll respin this once upstream has a new release with the ENV variable I added that strips xbr during installation, not stripping xbr results in a fairly large target size increase, nearly 10MB from the looks of it.
Sounds good. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 package/python-autobahn: bump to version 20.4.3
Quoted 19 lines · Thomas Petazzoni
Hello James,
Quoted 5 lines · On Sat, 25 Apr 2020 13:31:31 -0600 James Hilliard <[email protected]>…
Quoted 2 lines
Why don't we support it? Can it be made optional in a way that is acceptable upstream?
This feature is very dependency heavy to begin with(we don't have buildroot packages for most) and not relevant to most autobahn use cases.
OK.
Quoted 2 lines
I just got something merged upstream which should simplify stripping xbr however.
Would be good, indeed.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Urgh, we want a patch, not tweaks like that. I guess perhaps the patch doesn't need to remove the actual source files, just remove the handling in
setup.py.I'll respin this once upstream has a new release with the ENV variable I added that strips xbr during installation, not stripping xbr results in a fairly large target size increase, nearly 10MB from the looks of it.
Sounds good. Thanks!
If you'd like you can merge just the version bump part without the xbr strip for now.
Quoted 6 lines
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
PATCH 1/1 package/python-autobahn: bump to version 20.4.3
Quoted 2 lines · On Sat, 25 Apr 2020 13:55:52 -0600 James Hilliard <[email protected]>…
If you'd like you can merge just the version bump part without the xbr strip for now.
But you said we don't have what is needed for xbr. Or is that "just" runtime dependencies that are missing?
If that really brings 10 MB of additional useless stuff, I think I'd prefer to hold off on the version bump, and do it once there is a good solution to avoid installing xbr.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 package/python-autobahn: bump to version 20.4.3
Quoted 9 lines · Thomas Petazzoni
Quoted 2 lines · On Sat, 25 Apr 2020 13:55:52 -0600 James Hilliard <[email protected]>…
If you'd like you can merge just the version bump part without the xbr strip for now.
But you said we don't have what is needed for xbr. Or is that "just" runtime dependencies that are missing?
Yeah, it's runtime dependencies.
Quoted 5 lines
If that really brings 10 MB of additional useless stuff, I think I'd prefer to hold off on the version bump, and do it once there is a good solution to avoid installing xbr.
It doesn't make a difference since the current version also has xbr.
Quoted 7 lines
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
PATCH 1/1 package/python-autobahn: bump to version 20.4.3
Quoted 5 lines · On Sat, 25 Apr 2020 15:07:56 -0600 James Hilliard <[email protected]>…
Quoted 4 lines
If that really brings 10 MB of additional useless stuff, I think I'd prefer to hold off on the version bump, and do it once there is a good solution to avoid installing xbr.
It doesn't make a difference since the current version also has xbr.
Ah, then your patch should have been split into two, in the first place. One for the version bump, one for the xdr cleanup/removal.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com