diff options
author | M.Dinslage | 2024-04-04 07:14:32 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo | 2024-04-04 07:19:22 +0200 |
commit | d9cfbff954cfa48677d32b14d89f610a26ad109d (patch) | |
tree | 6bf48fd7d64f68265cd00bdd191d6b3292b9b59f /games/m64py/fix_setup_py.patch | |
parent | e326619dd891a2805f40ceca738b453536789329 (diff) | |
download | slackbuilds-d9cfbff954cfa48677d32b14d89f610a26ad109d.tar.gz |
games/m64py: Fix build on current.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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) |