[Buildroot] [git commit] package/python-sentry-sdk: drop httpx.py for python 2.x to fix pycompile issue

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Oct 20 21:35:41 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=31cfaab3c9afc300c1c76e27a72a9d7c4860d969
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 package/python-sentry-sdk/python-sentry-sdk.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/python-sentry-sdk/python-sentry-sdk.mk b/package/python-sentry-sdk/python-sentry-sdk.mk
index 5ccd2aff5c..556f03e137 100644
--- a/package/python-sentry-sdk/python-sentry-sdk.mk
+++ b/package/python-sentry-sdk/python-sentry-sdk.mk
@@ -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


More information about the buildroot mailing list