Skip to content

Instantly share code, notes, and snippets.

@gresm
gresm / update_pygame.py
Last active April 30, 2024 15:26
Move from pygame to pygame-ce
from importlib import metadata
from subprocess import call
from sys import executable
dist = metadata.packages_distributions()
install_pygame_ce = False
uninstall_pygame = False
if "pygame" not in dist:
install_pygame_ce = True
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for