6bfedaf577
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>
24 lines
778 B
Makefile
24 lines
778 B
Makefile
################################################################################
|
|
#
|
|
# python-fire
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_FIRE_VERSION = 0.3.1
|
|
PYTHON_FIRE_SOURCE = fire-$(PYTHON_FIRE_VERSION).tar.gz
|
|
PYTHON_FIRE_SITE = https://files.pythonhosted.org/packages/34/a7/0e22e70778aca01a52b9c899d9c145c6396d7b613719cd63db97ffa13f2f
|
|
PYTHON_FIRE_SETUP_TYPE = setuptools
|
|
PYTHON_FIRE_LICENSE = Apache-2.0
|
|
PYTHON_FIRE_LICENSE_FILES = LICENSE
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
|
# only needed/valid for python 3.x
|
|
define PYTHON_FIRE_RM_PY3_FILE
|
|
rm -f $(TARGET_DIR)/usr/lib/python*/site-packages/fire/test_components_py3.py
|
|
endef
|
|
|
|
PYTHON_FIRE_POST_INSTALL_TARGET_HOOKS += PYTHON_FIRE_RM_PY3_FILE
|
|
endif
|
|
|
|
$(eval $(python-package))
|