-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1212 from wingtk/fix-distutils-python312
Fix GLib Build Failure with Python 3.12
- Loading branch information
Showing
5 changed files
with
28 additions
and
12 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
gvsbuild/patches/glib/python-312-distutils-to-packaging.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Subject: [PATCH] Replace distutils with packaging | ||
--- | ||
Index: gio/gdbus-2.0/codegen/utils.py | ||
IDEA additional info: | ||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | ||
<+>UTF-8 | ||
=================================================================== | ||
diff --git a/gio/gdbus-2.0/codegen/utils.py b/gio/gdbus-2.0/codegen/utils.py | ||
--- a/gio/gdbus-2.0/codegen/utils.py (revision e93fd4cfc39167cf0ceb9c531238d9800d3d9edb) | ||
+++ b/gio/gdbus-2.0/codegen/utils.py (date 1705782834785) | ||
@@ -19,7 +19,7 @@ | ||
# | ||
# Author: David Zeuthen <davidz@redhat.com> | ||
|
||
-import distutils.version | ||
+import packaging.version | ||
import os | ||
import sys | ||
|
||
@@ -166,4 +166,4 @@ | ||
v = str(key[0]) | ||
else: | ||
v = "0" | ||
- return (distutils.version.LooseVersion(v), key[1]) | ||
+ return (packaging.version.Version(v), key[1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters