mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-03 06:03:52 -09:00
Enabling the option correctly select the python-curses module dependency of the viewer tool. Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
22 lines
764 B
Makefile
22 lines
764 B
Makefile
################################################################################
|
|
#
|
|
# python-can
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_CAN_VERSION = 4.4.2
|
|
PYTHON_CAN_SOURCE = python_can-$(PYTHON_CAN_VERSION).tar.gz
|
|
PYTHON_CAN_SITE = https://files.pythonhosted.org/packages/a3/17/57c38abbf00993ac5ec306de0c00271685d1372ef3d907b107eb63ab13a8
|
|
PYTHON_CAN_SETUP_TYPE = setuptools
|
|
PYTHON_CAN_LICENSE = LGPL-3.0
|
|
PYTHON_CAN_LICENSE_FILES = LICENSE.txt
|
|
|
|
ifneq ($(BR2_PACKAGE_PYTHON_CAN_VIEWER),y)
|
|
define PYTHON_CAN_REMOVE_VIEWER
|
|
rm -f $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/can/viewer.py
|
|
endef
|
|
PYTHON_CAN_POST_INSTALL_TARGET_HOOKS += PYTHON_CAN_REMOVE_VIEWER
|
|
endif
|
|
|
|
$(eval $(python-package))
|