package/python-pymodbus: drop asyncio files for python 2.x to fix pycompile issue
authorPeter Korsgaard <peter@korsgaard.com>
Sun, 11 Oct 2020 09:09:30 +0000 (11:09 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 12 Oct 2020 06:36:53 +0000 (08:36 +0200)
commit7d417ed7f3c5979a50ca97bdeeb8f97ba9394586
treedd55b71271f20a7f42df44ed5f6edb54b63a6ff5
parentd732b60941e86d5e3eddf981ce4e7deaab5009a4
package/python-pymodbus: drop asyncio files for python 2.x to fix pycompile issue

Pymodbus has optional support for 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/pymodbus/client/asynchronous/asyncio/__init__.py", line 257
    yield from self._connect()
             ^
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/cc4/cc48927cbe9ae6c2d8b12d65467ec40df82febf6/

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