File 001_gimp_use_python313.patch of Package gimp
diff -uNr gimp.orig/extensions/goat-exercises/goat-exercise-py3.py gimp/extensions/goat-exercises/goat-exercise-py3.py
--- gimp.orig/extensions/goat-exercises/goat-exercise-py3.py 2024-11-21 07:22:10.883782380 +0100
+++ gimp/extensions/goat-exercises/goat-exercise-py3.py 2024-11-21 07:22:31.077732616 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# -*- coding: utf-8 -*-
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff -uNr gimp.orig/libgimp/tests/libgimp-run-python-test.sh gimp/libgimp/tests/libgimp-run-python-test.sh
--- gimp.orig/libgimp/tests/libgimp-run-python-test.sh 2024-11-21 07:22:10.868782418 +0100
+++ gimp/libgimp/tests/libgimp-run-python-test.sh 2024-11-21 07:22:31.096732571 +0100
@@ -17,7 +17,7 @@
# hence a useless line, because I'm going to remove it and replace it with
# gimp_assert() import line.
# This will make much easier to debug tests with meaningful line numbers.
- echo "ERROR: file '$TEST_FILE' should start with a shebang: #!/usr/bin/env python3"
+ echo "ERROR: file '$TEST_FILE' should start with a shebang: #!/usr/bin/python3.13"
return 1;
fi
diff -uNr gimp.orig/libgimp/tests/pygimp/utils.py gimp/libgimp/tests/pygimp/utils.py
--- gimp.orig/libgimp/tests/pygimp/utils.py 2024-11-21 07:22:10.868782418 +0100
+++ gimp/libgimp/tests/pygimp/utils.py 2024-11-21 07:22:31.096732571 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
import inspect
import sys
diff -uNr gimp.orig/libgimp/tests/README.md gimp/libgimp/tests/README.md
--- gimp.orig/libgimp/tests/README.md 2024-11-21 07:22:10.868782418 +0100
+++ gimp/libgimp/tests/README.md 2024-11-21 07:22:31.095732573 +0100
@@ -53,12 +53,12 @@
Simply add your code in a file named the same as the C file, but with `.py`
extension instead of `.c`.
-The file must mandatorily start with a shebang: `#!/usr/bin/env python3`
+The file must mandatorily start with a shebang: `#!/usr/bin/python3.13`
For testing, use `gimp_assert()` as follows:
```py
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# Add your test code here.
# Then test that it succeeded with the assert-like test:
diff -uNr gimp.orig/libgimp/tests/test-color-parser.py gimp/libgimp/tests/test-color-parser.py
--- gimp.orig/libgimp/tests/test-color-parser.py 2024-11-21 07:22:10.868782418 +0100
+++ gimp/libgimp/tests/test-color-parser.py 2024-11-21 07:22:31.096732571 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
EPSILON=1e-6
diff -uNr gimp.orig/libgimp/tests/test-export-options.py gimp/libgimp/tests/test-export-options.py
--- gimp.orig/libgimp/tests/test-export-options.py 2024-11-21 07:22:10.868782418 +0100
+++ gimp/libgimp/tests/test-export-options.py 2024-11-21 07:22:31.096732571 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
NEW_IMAGE_WIDTH=1920
NEW_IMAGE_HEIGHT=2001
diff -uNr gimp.orig/libgimp/tests/test-image.py gimp/libgimp/tests/test-image.py
--- gimp.orig/libgimp/tests/test-image.py 2024-11-21 07:22:10.868782418 +0100
+++ gimp/libgimp/tests/test-image.py 2024-11-21 07:22:31.096732571 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
NEW_IMAGE_WIDTH=1920
NEW_IMAGE_HEIGHT=2001
diff -uNr gimp.orig/libgimp/tests/test-palette.py gimp/libgimp/tests/test-palette.py
--- gimp.orig/libgimp/tests/test-palette.py 2024-11-21 07:22:10.868782418 +0100
+++ gimp/libgimp/tests/test-palette.py 2024-11-21 07:22:31.096732571 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
import struct
diff -uNr gimp.orig/libgimp/tests/test-selection-float.py gimp/libgimp/tests/test-selection-float.py
--- gimp.orig/libgimp/tests/test-selection-float.py 2024-11-21 07:22:10.868782418 +0100
+++ gimp/libgimp/tests/test-selection-float.py 2024-11-21 07:22:31.096732571 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
image = Gimp.Image.new(32,32,Gimp.ImageBaseType.RGB)
gimp_assert('Gimp.Image.new', image is not None)
diff -uNr gimp.orig/libgimp/tests/test-unit.py gimp/libgimp/tests/test-unit.py
--- gimp.orig/libgimp/tests/test-unit.py 2024-11-21 07:22:10.868782418 +0100
+++ gimp/libgimp/tests/test-unit.py 2024-11-21 07:22:31.096732571 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
N_DEFAULT_USER_UNITS=6
diff -uNr gimp.orig/meson.build gimp/meson.build
--- gimp.orig/meson.build 2024-11-21 07:22:10.975782145 +0100
+++ gimp/meson.build 2024-11-21 08:30:40.047997209 +0100
@@ -1112,9 +1112,9 @@
## Python
-python3_minver = '>=3.6'
+python3_minver = '>=3.13'
-python = pythonmod.find_installation('python3', required: true)
+python = pythonmod.find_installation('python3.13', required: true)
message('Found Python @0@'.format(python.language_version()))
if not python.language_version().version_compare(python3_minver)
diff -uNr gimp.orig/plug-ins/python/colorxhtml.py gimp/plug-ins/python/colorxhtml.py
--- gimp.orig/plug-ins/python/colorxhtml.py 2024-11-21 07:22:11.006782067 +0100
+++ gimp/plug-ins/python/colorxhtml.py 2024-11-21 07:22:31.184732361 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# Gimp-Python - allows the writing of Gimp plugins in Python.
# Copyright (C) 2003, 2005 Manish Singh <yosh@gimp.org>
diff -uNr gimp.orig/plug-ins/python/file-openraster.py gimp/plug-ins/python/file-openraster.py
--- gimp.orig/plug-ins/python/file-openraster.py 2024-11-21 07:22:11.006782067 +0100
+++ gimp/plug-ins/python/file-openraster.py 2024-11-21 07:22:31.184732361 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# GIMP Plug-in for the OpenRaster file format
# http://create.freedesktop.org/wiki/OpenRaster
diff -uNr gimp.orig/plug-ins/python/foggify.py gimp/plug-ins/python/foggify.py
--- gimp.orig/plug-ins/python/foggify.py 2024-11-21 07:22:11.006782067 +0100
+++ gimp/plug-ins/python/foggify.py 2024-11-21 07:22:31.184732361 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# Copyright (C) 1997 James Henstridge <james@daa.com.au>
#
# This program is free software: you can redistribute it and/or modify
diff -uNr gimp.orig/plug-ins/python/gradients-save-as-css.py gimp/plug-ins/python/gradients-save-as-css.py
--- gimp.orig/plug-ins/python/gradients-save-as-css.py 2024-11-21 07:22:11.006782067 +0100
+++ gimp/plug-ins/python/gradients-save-as-css.py 2024-11-21 07:22:31.184732361 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# -*- coding: utf-8 -*-
# Allows saving (TODO: and loading) CSS gradient files
diff -uNr gimp.orig/plug-ins/python/histogram-export.py gimp/plug-ins/python/histogram-export.py
--- gimp.orig/plug-ins/python/histogram-export.py 2024-11-21 07:22:11.006782067 +0100
+++ gimp/plug-ins/python/histogram-export.py 2024-11-21 07:22:31.184732361 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
#coding: utf-8
# This program is free software: you can redistribute it and/or modify
diff -uNr gimp.orig/plug-ins/python/palette-offset.py gimp/plug-ins/python/palette-offset.py
--- gimp.orig/plug-ins/python/palette-offset.py 2024-11-21 07:22:11.006782067 +0100
+++ gimp/plug-ins/python/palette-offset.py 2024-11-21 07:22:31.184732361 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# -*- coding: utf-8 -*-
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff -uNr gimp.orig/plug-ins/python/palette-sort.py gimp/plug-ins/python/palette-sort.py
--- gimp.orig/plug-ins/python/palette-sort.py 2024-11-21 07:22:11.006782067 +0100
+++ gimp/plug-ins/python/palette-sort.py 2024-11-21 07:22:31.184732361 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# -*- coding: utf-8 -*-
#
# This program is free software: you can redistribute it and/or modify
diff -uNr gimp.orig/plug-ins/python/palette-to-gradient.py gimp/plug-ins/python/palette-to-gradient.py
--- gimp.orig/plug-ins/python/palette-to-gradient.py 2024-11-21 07:22:11.006782067 +0100
+++ gimp/plug-ins/python/palette-to-gradient.py 2024-11-21 07:22:31.184732361 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff -uNr gimp.orig/plug-ins/python/python-console/python-console.py gimp/plug-ins/python/python-console/python-console.py
--- gimp.orig/plug-ins/python/python-console/python-console.py 2024-11-21 07:22:11.006782067 +0100
+++ gimp/plug-ins/python/python-console/python-console.py 2024-11-21 07:22:31.184732361 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# Gimp-Python - allows the writing of Gimp plugins in Python.
# Copyright (C) 1997 James Henstridge <james@daa.com.au>
diff -uNr gimp.orig/plug-ins/python/python-eval.py gimp/plug-ins/python/python-eval.py
--- gimp.orig/plug-ins/python/python-eval.py 2024-11-21 07:22:11.006782067 +0100
+++ gimp/plug-ins/python/python-eval.py 2024-11-21 07:22:31.185732359 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# Gimp-Python - allows the writing of Gimp plugins in Python.
# Copyright (C) 2006 Manish Singh <yosh@gimp.org>
diff -uNr gimp.orig/plug-ins/python/spyro-plus.py gimp/plug-ins/python/spyro-plus.py
--- gimp.orig/plug-ins/python/spyro-plus.py 2024-11-21 07:22:11.006782067 +0100
+++ gimp/plug-ins/python/spyro-plus.py 2024-11-21 07:22:31.185732359 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# Draw Spyrographs, Epitrochoids, and Lissajous curves with interactive feedback.
#
diff -uNr gimp.orig/plug-ins/python/test-dialog.py gimp/plug-ins/python/test-dialog.py
--- gimp.orig/plug-ins/python/test-dialog.py 2024-11-21 07:22:11.006782067 +0100
+++ gimp/plug-ins/python/test-dialog.py 2024-11-21 07:22:31.185732359 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff -uNr gimp.orig/plug-ins/python/tests/test-file-plug-ins/batch-export-tests.py gimp/plug-ins/python/tests/test-file-plug-ins/batch-export-tests.py
--- gimp.orig/plug-ins/python/tests/test-file-plug-ins/batch-export-tests.py 2024-11-21 07:22:11.005782069 +0100
+++ gimp/plug-ins/python/tests/test-file-plug-ins/batch-export-tests.py 2024-11-21 07:22:31.186732356 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# -*- coding: utf-8 -*-
#
# GIMP - The GNU Image Manipulation Program
diff -uNr gimp.orig/plug-ins/python/tests/test-file-plug-ins/batch-import-tests.py gimp/plug-ins/python/tests/test-file-plug-ins/batch-import-tests.py
--- gimp.orig/plug-ins/python/tests/test-file-plug-ins/batch-import-tests.py 2024-11-21 07:22:11.005782069 +0100
+++ gimp/plug-ins/python/tests/test-file-plug-ins/batch-import-tests.py 2024-11-21 07:22:31.186732356 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# -*- coding: utf-8 -*-
#
# GIMP - The GNU Image Manipulation Program
diff -uNr gimp.orig/plug-ins/python/tests/test-file-plug-ins/gimpconfig.py gimp/plug-ins/python/tests/test-file-plug-ins/gimpconfig.py
--- gimp.orig/plug-ins/python/tests/test-file-plug-ins/gimpconfig.py 2024-11-21 07:22:11.005782069 +0100
+++ gimp/plug-ins/python/tests/test-file-plug-ins/gimpconfig.py 2024-11-21 07:22:31.186732356 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# -*- coding: utf-8 -*-
#
# GIMP - The GNU Image Manipulation Program
diff -uNr gimp.orig/plug-ins/python/tests/test-file-plug-ins/gimpexporttests.py gimp/plug-ins/python/tests/test-file-plug-ins/gimpexporttests.py
--- gimp.orig/plug-ins/python/tests/test-file-plug-ins/gimpexporttests.py 2024-11-21 07:22:11.005782069 +0100
+++ gimp/plug-ins/python/tests/test-file-plug-ins/gimpexporttests.py 2024-11-21 07:22:31.186732356 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# -*- coding: utf-8 -*-
#
# GIMP - The GNU Image Manipulation Program
diff -uNr gimp.orig/plug-ins/python/tests/test-file-plug-ins/gimplogger.py gimp/plug-ins/python/tests/test-file-plug-ins/gimplogger.py
--- gimp.orig/plug-ins/python/tests/test-file-plug-ins/gimplogger.py 2024-11-21 07:22:11.005782069 +0100
+++ gimp/plug-ins/python/tests/test-file-plug-ins/gimplogger.py 2024-11-21 07:22:31.186732356 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# -*- coding: utf-8 -*-
#
# GIMP - The GNU Image Manipulation Program
diff -uNr gimp.orig/plug-ins/python/tests/test-file-plug-ins/gimptestframework.py gimp/plug-ins/python/tests/test-file-plug-ins/gimptestframework.py
--- gimp.orig/plug-ins/python/tests/test-file-plug-ins/gimptestframework.py 2024-11-21 07:22:11.005782069 +0100
+++ gimp/plug-ins/python/tests/test-file-plug-ins/gimptestframework.py 2024-11-21 07:22:31.186732356 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# -*- coding: utf-8 -*-
#
# GIMP - The GNU Image Manipulation Program
diff -uNr gimp.orig/plug-ins/python/tests/test-file-plug-ins/test-file-plug-ins.py gimp/plug-ins/python/tests/test-file-plug-ins/test-file-plug-ins.py
--- gimp.orig/plug-ins/python/tests/test-file-plug-ins/test-file-plug-ins.py 2024-11-21 07:22:11.005782069 +0100
+++ gimp/plug-ins/python/tests/test-file-plug-ins/test-file-plug-ins.py 2024-11-21 07:22:31.186732356 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# -*- coding: utf-8 -*-
#
# GIMP - The GNU Image Manipulation Program
diff -uNr gimp.orig/plug-ins/script-fu/server/servertest.py gimp/plug-ins/script-fu/server/servertest.py
--- gimp.orig/plug-ins/script-fu/server/servertest.py 2024-11-21 07:22:10.981782130 +0100
+++ gimp/plug-ins/script-fu/server/servertest.py 2024-11-21 07:22:31.201732321 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
# updated to python3 - cameron
diff -uNr gimp.orig/tools/defcheck.py gimp/tools/defcheck.py
--- gimp.orig/tools/defcheck.py 2024-11-21 07:22:10.876782397 +0100
+++ gimp/tools/defcheck.py 2024-11-21 07:22:31.477731663 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
"""
defcheck.py -- Consistency check for the .def files.
diff -uNr gimp.orig/tools/generate-welcome-dialog-data.py gimp/tools/generate-welcome-dialog-data.py
--- gimp.orig/tools/generate-welcome-dialog-data.py 2024-11-21 07:22:10.876782397 +0100
+++ gimp/tools/generate-welcome-dialog-data.py 2024-11-21 07:22:31.477731663 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
"""
generate-welcome-dialog-data.py -- Generate app/dialogs/welcome-dialog-data.h
diff -uNr gimp.orig/tools/meson_install_subdir.py gimp/tools/meson_install_subdir.py
--- gimp.orig/tools/meson_install_subdir.py 2024-11-21 07:22:10.876782397 +0100
+++ gimp/tools/meson_install_subdir.py 2024-11-21 07:22:31.478731661 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
import sys, os
from pathlib import Path
diff -uNr gimp.orig/tools/performance-log-close-tags.py gimp/tools/performance-log-close-tags.py
--- gimp.orig/tools/performance-log-close-tags.py 2024-11-21 07:22:10.876782397 +0100
+++ gimp/tools/performance-log-close-tags.py 2024-11-21 07:22:31.478731661 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
"""
performance-log-close-tags.py -- Closes open tags in GIMP performance logs
diff -uNr gimp.orig/tools/performance-log-coalesce.py gimp/tools/performance-log-coalesce.py
--- gimp.orig/tools/performance-log-coalesce.py 2024-11-21 07:22:10.876782397 +0100
+++ gimp/tools/performance-log-coalesce.py 2024-11-21 07:22:31.478731661 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
"""
performance-log-coalesce.py -- Coalesce GIMP performance log symbols, by
diff -uNr gimp.orig/tools/performance-log-deduce.py gimp/tools/performance-log-deduce.py
--- gimp.orig/tools/performance-log-deduce.py 2024-11-21 07:22:10.876782397 +0100
+++ gimp/tools/performance-log-deduce.py 2024-11-21 07:22:31.478731661 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
"""
performance-log-deduce.py -- Deduce GIMP performance log thread state
diff -uNr gimp.orig/tools/performance-log-expand.py gimp/tools/performance-log-expand.py
--- gimp.orig/tools/performance-log-expand.py 2024-11-21 07:22:10.876782397 +0100
+++ gimp/tools/performance-log-expand.py 2024-11-21 07:22:31.478731661 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
"""
performance-log-expand.py -- Delta-decodes GIMP performance logs
diff -uNr gimp.orig/tools/performance-log-progressive-coalesce.py gimp/tools/performance-log-progressive-coalesce.py
--- gimp.orig/tools/performance-log-progressive-coalesce.py 2024-11-21 07:22:10.876782397 +0100
+++ gimp/tools/performance-log-progressive-coalesce.py 2024-11-21 07:22:31.478731661 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
"""
performance-log-progressive-coalesce.py -- Coalesce address-maps in progressive
diff -uNr gimp.orig/tools/performance-log-resolve.py gimp/tools/performance-log-resolve.py
--- gimp.orig/tools/performance-log-resolve.py 2024-11-21 07:22:10.876782397 +0100
+++ gimp/tools/performance-log-resolve.py 2024-11-21 07:22:31.478731661 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
"""
performance-log-resolve.py -- Resolve GIMP performance log backtrace symbols
diff -uNr gimp.orig/tools/performance-log-viewer.py gimp/tools/performance-log-viewer.py
--- gimp.orig/tools/performance-log-viewer.py 2024-11-21 07:22:10.876782397 +0100
+++ gimp/tools/performance-log-viewer.py 2024-11-21 07:22:31.478731661 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3.13
"""
performance-log-viewer.py -- GIMP performance log viewer