diff options
Diffstat (limited to 'games/m64py/fix_setup_py.patch')
-rw-r--r-- | games/m64py/fix_setup_py.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/games/m64py/fix_setup_py.patch b/games/m64py/fix_setup_py.patch new file mode 100644 index 0000000000..de12c36601 --- /dev/null +++ b/games/m64py/fix_setup_py.patch @@ -0,0 +1,32 @@ +--- setup.py.orig 2024-02-09 21:14:15.359607270 +0100 ++++ setup.py 2024-02-09 21:15:55.391267720 +0100 +@@ -15,6 +15,11 @@ + import distutils.command.clean as distutils_clean + import setuptools + ++try: ++ from setuptools.modified import newer ++except ImportError: ++ from distutils.dep_util import newer ++ + # Add the src folder to the path + sys.path.insert(0, os.path.realpath("src")) + +@@ -39,7 +44,7 @@ + def compile_rc(self, qrc_file): + import PyQt5 + py_file = os.path.splitext(qrc_file)[0] + "_rc.py" +- if not distutils.dep_util.newer(qrc_file, py_file): ++ if not newer(qrc_file, py_file): + return + origpath = os.getenv("PATH") + path = origpath.split(os.pathsep) +@@ -54,7 +59,7 @@ + def compile_ui(self, ui_file): + from PyQt5 import uic + py_file = os.path.splitext(ui_file)[0] + "_ui.py" +- if not distutils.dep_util.newer(ui_file, py_file): ++ if not newer(ui_file, py_file): + return + with open(py_file, "w") as a_file: + uic.compileUi(ui_file, a_file, from_imports=True) |