package/python-sentry-sdk: drop httpx.py for python 2.x to fix pycompile issue
PATCH 1/1 package/python-sentry-sdk: drop httpx.py for python 2.x to fix pycompile issue
Drop httpx.py to fix the following build failure with python 2.x raised since bump to version 1.4.3 in commit fd684ab9f38ad908013d09fe7e46cebfada4406c and
https://github.com/getsentry/sentry-python/commit/e2d0893824481c9a5dd3141872d90d0888c4c5f8:
error: File "/usr/lib/python2.7/site-packages/sentry_sdk/integrations/httpx.py", line 69
async def send(self, request, **kwargs):
^
Fixes:
- http://autobuild.buildroot.org/results/fd651abb3bc2fa33c861238acf1c4ad49fdac160
--- package/python-sentry-sdk/python-sentry-sdk.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/python-sentry-sdk/python-sentry-sdk.mk +1 -1
@@ -15,7 +15,7 @@ ifeq ($(BR2_PACKAGE_PYTHON),y) # only needed/valid for python 3.x define PYTHON_SENTRY_SDK_RM_PY3_FILES rm -f $(addprefix $(TARGET_DIR)/usr/lib/python*/site-packages/sentry_sdk/integrations/,\ - aiohttp.py asgi.py django/asgi.py sanic.py tornado.py) + aiohttp.py asgi.py django/asgi.py httpx.py sanic.py tornado.py) endef PYTHON_SENTRY_SDK_POST_INSTALL_TARGET_HOOKS += PYTHON_SENTRY_SDK_RM_PY3_FILES
Signature · 6 lines
2.33.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni
AppliedQuoted 9 lines · On Wed, 20 Oct 2021 18:32:37 +0200 Fabrice Fontaine…
Drop
httpx.pyto fix the following build failure with python 2.x raised since bump to version 1.4.3 in commitfd684ab9f38ad908013d09fe7e46cebfada4406cand
https://github.com/getsentry/sentry-python/commit/e2d0893824481c9a5dd3141872d90d0888c4c5f8:error: File "
/usr/lib/python2.7/site-packages/sentry_sdk/integrations/httpx.py", line 69
async defsend(self, request, **kwargs):
^
Quoted 7 lines
Fixes:
- http://autobuild.buildroot.org/results/fd651abb3bc2fa33c861238acf1c4ad49fdac160Signed-off-by Fabrice Fontaine <[email protected]>--- package/python-sentry-sdk/python-sentry-sdk.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot