package/python-fire.mk: drop test_components_py3.py file for python 2.x to fix pyfile...
authorPeter Korsgaard <peter@korsgaard.com>
Fri, 2 Oct 2020 13:40:48 +0000 (15:40 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 3 Oct 2020 06:57:42 +0000 (08:57 +0200)
commit6bfedaf57798c12f0e6279b8361fd5ec4244db8c
treecea9cda6e8087693326993743b4c73b3a5d06a15
parent753c031977cfda84237366a98098bde828692f33
package/python-fire.mk: drop test_components_py3.py file for python 2.x to fix pyfile issue

Fixes:
http://autobuild.buildroot.net/results/72e0cc78194a1b93bf26a50742e59a1e93bde1d1/

fire has conditional logic to load test_components_py3.py when running under
Python 3.x:

if six.PY3:
  from fire import test_components_py3 as py3

pycompile unfortunately errors out on it:

../scripts/pycompile.py ..

error:   File "/usr/lib/python2.7/site-packages/fire/test_components_py3.py", line 18
    def identity(arg1, arg2: int, arg3=10, arg4: int = 20, *arg5,
                           ^
SyntaxError: invalid syntax

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

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