blob: 97fcbb5e867c7c794d0fac5bcb4b38a9b01308ba [file] [log] [blame]
################################################################################
#
# python-aenum
#
################################################################################
PYTHON_AENUM_VERSION = 2.2.3
PYTHON_AENUM_SOURCE = aenum-$(PYTHON_AENUM_VERSION).tar.gz
PYTHON_AENUM_SITE = https://files.pythonhosted.org/packages/6f/6a/8ed729e0add885d7a559ebb06133029b1f8c4bd66cbf1bdee1ec969fb310
PYTHON_AENUM_SETUP_TYPE = setuptools
PYTHON_AENUM_LICENSE = BSD-3-Clause
PYTHON_AENUM_LICENSE_FILES = aenum/LICENSE
ifeq ($(BR2_PACKAGE_PYTHON),y)
# only needed/valid for python 3.x
define PYTHON_AENUM_RM_PY3_FILE
rm -f $(TARGET_DIR)/usr/lib/python*/site-packages/aenum/test_v3.py
endef
PYTHON_AENUM_POST_INSTALL_TARGET_HOOKS += PYTHON_AENUM_RM_PY3_FILE
endif
$(eval $(python-package))