2016-03-27 03:31:23 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# python-pexpect
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-09-09 07:17:48 +02:00
|
|
|
PYTHON_PEXPECT_VERSION = 4.6.0
|
2016-03-27 03:31:23 +02:00
|
|
|
PYTHON_PEXPECT_SOURCE = pexpect-$(PYTHON_PEXPECT_VERSION).tar.gz
|
2018-09-09 07:17:48 +02:00
|
|
|
PYTHON_PEXPECT_SITE = https://files.pythonhosted.org/packages/89/43/07d07654ee3e25235d8cea4164cdee0ec39d1fda8e9203156ebe403ffda4
|
2016-03-27 03:31:23 +02:00
|
|
|
PYTHON_PEXPECT_LICENSE = ISC
|
|
|
|
PYTHON_PEXPECT_LICENSE_FILES = LICENSE
|
|
|
|
PYTHON_PEXPECT_SETUP_TYPE = distutils
|
|
|
|
|
2016-05-01 22:15:18 +02:00
|
|
|
# async.py is not usable with Python 2, and removing is the solution
|
|
|
|
# recommended by upstream:
|
|
|
|
# https://github.com/pexpect/pexpect/issues/290
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
|
|
|
define PYTHON_PEXPECT_REMOVE_ASYNC_PY
|
2018-09-09 07:17:48 +02:00
|
|
|
$(RM) $(@D)/pexpect/_async.py
|
2016-05-01 22:15:18 +02:00
|
|
|
endef
|
|
|
|
PYTHON_PEXPECT_POST_PATCH_HOOKS += PYTHON_PEXPECT_REMOVE_ASYNC_PY
|
|
|
|
endif
|
|
|
|
|
2016-03-27 03:31:23 +02:00
|
|
|
$(eval $(python-package))
|