2018-01-18 15:49:17 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# python-txtorcon
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-10-18 20:26:23 +02:00
|
|
|
PYTHON_TXTORCON_VERSION = 19.1.0
|
2018-01-18 15:49:17 +01:00
|
|
|
PYTHON_TXTORCON_SOURCE = txtorcon-$(PYTHON_TXTORCON_VERSION).tar.gz
|
2019-10-18 20:26:23 +02:00
|
|
|
PYTHON_TXTORCON_SITE = https://files.pythonhosted.org/packages/8c/26/d5b2fba4ffbcb23957ff2cee4d7d0a2d667372b9eb04807058bd561c8e8f
|
2018-01-18 15:49:17 +01:00
|
|
|
PYTHON_TXTORCON_SETUP_TYPE = setuptools
|
|
|
|
PYTHON_TXTORCON_LICENSE = MIT
|
|
|
|
PYTHON_TXTORCON_LICENSE_FILES = LICENSE
|
|
|
|
|
2020-09-30 09:31:57 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
|
|
|
# only needed/valid for python 3.x
|
|
|
|
define PYTHON_TXTORCON_RM_PY3_FILE
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/python*/site-packages/txtorcon/controller_py3.py
|
|
|
|
endef
|
|
|
|
|
|
|
|
PYTHON_TXTORCON_POST_INSTALL_TARGET_HOOKS += PYTHON_TXTORCON_RM_PY3_FILE
|
|
|
|
endif
|
|
|
|
|
2018-01-18 15:49:17 +01:00
|
|
|
$(eval $(python-package))
|