![Asaf Kahlon](/assets/img/avatar_default.png)
Signed-off-by: Asaf Kahlon <asafka7@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
25 lines
865 B
Makefile
25 lines
865 B
Makefile
################################################################################
|
|
#
|
|
# python-pexpect
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_PEXPECT_VERSION = 4.7.0
|
|
PYTHON_PEXPECT_SOURCE = pexpect-$(PYTHON_PEXPECT_VERSION).tar.gz
|
|
PYTHON_PEXPECT_SITE = https://files.pythonhosted.org/packages/1c/b1/362a0d4235496cb42c33d1d8732b5e2c607b0129ad5fdd76f5a583b9fcb3
|
|
PYTHON_PEXPECT_LICENSE = ISC
|
|
PYTHON_PEXPECT_LICENSE_FILES = LICENSE
|
|
PYTHON_PEXPECT_SETUP_TYPE = distutils
|
|
|
|
# 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
|
|
$(RM) $(@D)/pexpect/_async.py
|
|
endef
|
|
PYTHON_PEXPECT_POST_PATCH_HOOKS += PYTHON_PEXPECT_REMOVE_ASYNC_PY
|
|
endif
|
|
|
|
$(eval $(python-package))
|