-
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.
Fix distutils not found with Python 3.12
(cherry picked from commit c815292)
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
gvsbuild/patches/glib/002-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