2013-06-05 23:53:30 +00:00
|
|
|
################################################################################
|
2011-01-11 21:45:55 +01:00
|
|
|
#
|
|
|
|
|
# python-serial
|
|
|
|
|
#
|
2013-06-05 23:53:30 +00:00
|
|
|
################################################################################
|
2011-01-11 21:45:55 +01:00
|
|
|
|
2016-06-02 16:05:27 +02:00
|
|
|
PYTHON_SERIAL_VERSION = 3.1
|
2014-10-07 09:06:03 +02:00
|
|
|
PYTHON_SERIAL_SOURCE = pyserial-$(PYTHON_SERIAL_VERSION).tar.gz
|
2016-06-02 16:05:27 +02:00
|
|
|
PYTHON_SERIAL_SITE = https://pypi.python.org/packages/ce/9c/694ce79a9d4a164e109aeba1a40fba23336f3b7554978553e22a5d41d54d
|
2017-04-03 00:13:08 +05:30
|
|
|
PYTHON_SERIAL_LICENSE = BSD-3-Clause
|
2014-05-06 10:42:42 -05:00
|
|
|
PYTHON_SERIAL_LICENSE_FILES = LICENSE.txt
|
2015-12-29 23:43:48 +01:00
|
|
|
PYTHON_SERIAL_SETUP_TYPE = setuptools
|
2011-01-11 21:45:55 +01:00
|
|
|
|
2016-06-06 13:30:11 +02:00
|
|
|
# aio.py is an experimental module, that is compatible only with
|
|
|
|
|
# Python 3, so remove it for Python 2 environment or it will
|
|
|
|
|
# cause compilation errors
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
|
|
|
|
define PYTHON_SERIAL_REMOVE_AIO_PY
|
|
|
|
|
rm $(@D)/serial/aio.py
|
|
|
|
|
endef
|
|
|
|
|
PYTHON_SERIAL_POST_EXTRACT_HOOKS = PYTHON_SERIAL_REMOVE_AIO_PY
|
|
|
|
|
endif
|
|
|
|
|
|
2013-12-11 21:26:51 +01:00
|
|
|
$(eval $(python-package))
|