SHA256
1
0
forked from pool/python-fuse
python-fuse/no-more-distutils.patch
Steve Kowalik fc2cb03eaa - Add patch no-more-distutils.patch:
* Stop using distutils unilaterally.
- Switch to autosetup and pyproject macros.
- Be more clear about files in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fuse?expand=0&rev=20
2024-01-16 04:59:42 +00:00

30 lines
885 B
Diff

From 24039401245c6ba3bfb991e690a8ad85480845a4 Mon Sep 17 00:00:00 2001
From: Steve Kowalik <steven@wedontsleep.org>
Date: Tue, 16 Jan 2024 15:43:17 +1100
Subject: [PATCH] Do not unilaterally import distutils in setup.py
Python 3.12 removed distutils completly, so also attempt to import
Extension from setuptools, and if that fails, to import it from
distutils.
---
setup.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/setup.py b/setup.py
index 1d420b8..292ea8f 100755
--- a/setup.py
+++ b/setup.py
@@ -7,10 +7,9 @@
# part of the icecast project, http://svn.xiph.org/icecast/trunk/shout-python)
try:
- from setuptools import setup
+ from setuptools import setup, Extension
except ImportError:
- from distutils.core import setup
-from distutils.core import Extension
+ from distutils.core import setup, Extension
import os
import sys