package/python-sentry-sdk: drop asyncio files for python 2.x to fix pycompile issue
authorPeter Korsgaard <peter@korsgaard.com>
Sun, 11 Oct 2020 13:02:03 +0000 (15:02 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 12 Oct 2020 06:37:17 +0000 (08:37 +0200)
commitd62f0042e85c8a39608dc7ad6a491460791dfbfa
tree4bee21fd10e7e63ba3d0d215b4f501b0667cceb5
parentd73ec6e0ab40675604d735536f67d43b967cb529
package/python-sentry-sdk: drop asyncio files for python 2.x to fix pycompile issue

sentry-sdk has a set of optional "integrations", some of which use asyncio.

pycompile unfortunately errors out on these files when running under Python
2.x:

../scripts/pycompile.py ..
error:   File "/usr/lib/python2.7/site-packages/sentry_sdk/integrations/sanic.py", line 64
    async def sentry_handle_request(self, request, *args, **kwargs):
            ^
SyntaxError: invalid syntax

As a workaround, simply drop the unusable files from TARGET_DIR if building
for python 2.x.

Fixes:
http://autobuild.buildroot.net/results/9e4/9e47ee2a56153379e4e7bc839be5972a2302ba9f/

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/python-sentry-sdk/python-sentry-sdk.mk