From 70980a154b18c5fe6db940faf36f07ee20e27a70 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Fri, 18 Feb 2022 11:08:53 +0100 Subject: [PATCH] package/python-pygame: replace PYTHON_VERSION_MAJOR Replace PYTHON_VERSION_MAJOR by PYTHON3_VERSION_MAJOR now that python2 has been dropped Signed-off-by: Fabrice Fontaine Signed-off-by: Peter Korsgaard --- package/python-pygame/python-pygame.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/python-pygame/python-pygame.mk b/package/python-pygame/python-pygame.mk index 8deb42a90c..600dd9e743 100644 --- a/package/python-pygame/python-pygame.mk +++ b/package/python-pygame/python-pygame.mk @@ -103,7 +103,7 @@ PYTHON_PYGAME_POST_INSTALL_TARGET_HOOKS += PYTHON_PYGAME_REMOVE_TESTS ifneq ($(BR2_PACKAGE_PYTHON_PYGAME_EXAMPLES),y) define PYTHON_PYGAME_REMOVE_EXAMPLES - rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages/pygame/examples + rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/pygame/examples endef PYTHON_PYGAME_POST_INSTALL_TARGET_HOOKS += PYTHON_PYGAME_REMOVE_EXAMPLES endif