2018-03-14 14:17:50 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# python-pymodbus
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-10-21 15:40:27 +02:00
|
|
|
PYTHON_PYMODBUS_VERSION = 2.2.0
|
|
|
|
PYTHON_PYMODBUS_SOURCE = pymodbus-$(PYTHON_PYMODBUS_VERSION).tar.gz
|
2019-10-22 20:41:15 +02:00
|
|
|
PYTHON_PYMODBUS_SITE = $(call github,riptideio,pymodbus,v$(PYTHON_PYMODBUS_VERSION))
|
2018-03-14 14:17:50 +01:00
|
|
|
PYTHON_PYMODBUS_SETUP_TYPE = setuptools
|
|
|
|
PYTHON_PYMODBUS_LICENSE = BSD-3-Clause
|
|
|
|
PYTHON_PYMODBUS_LICENSE_FILES = doc/LICENSE
|
|
|
|
|
2020-10-11 11:09:30 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
|
|
|
# only needed/valid for python 3.x
|
|
|
|
define PYTHON_PYMODBUS_RM_PY3_FILES
|
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/python*/site-packages/pymodbus/client/asynchronous/asyncio
|
|
|
|
endef
|
|
|
|
|
|
|
|
PYTHON_PYMODBUS_POST_INSTALL_TARGET_HOOKS += PYTHON_PYMODBUS_RM_PY3_FILES
|
|
|
|
endif
|
|
|
|
|
2018-03-14 14:17:50 +01:00
|
|
|
$(eval $(python-package))
|