Skip to contentSkip to conversation

package/python-pygame: replace PYTHON_VERSION_MAJOR

PATCH In review Fabrice Fontaine 2 participants 2 messages Feb 18, 2022 – Feb 20, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/python-pygame: replace PYTHON_VERSION_MAJOR

Replace PYTHON_VERSION_MAJOR by PYTHON3_VERSION_MAJOR now that python2 has been dropped

---
 package/python-pygame/python-pygame.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/python-pygame/python-pygame.mk +1 -1
index 8deb42a90c..600dd9e743 100644
@@ -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
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Replace PYTHON_VERSION_MAJOR by PYTHON3_VERSION_MAJOR now that python2 has been dropped

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot