3dad1e394e
* Add README.cups.md * Do not unilaterally import distutils in setup.py * Add support for objects that support buffer protocol for "read" calls * Remove trailing space on files * CI: Add workflow to build Python wheels * Fix setup.py uninitialized variables issue * Build sdist in CI * Add cp310 wheel to CI * CI: Add workaround for broken py 3.5 in GitHub Actions. - dropped patch: no-more-distutils.patch - no longer needed. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fuse?expand=0&rev=22
30 lines
885 B
Diff
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
|
|
|