Skip to content

Commit 2403940

Browse files
committed
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.
1 parent e6c876f commit 2403940

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
# part of the icecast project, http://svn.xiph.org/icecast/trunk/shout-python)
88

99
try:
10-
from setuptools import setup
10+
from setuptools import setup, Extension
1111
except ImportError:
12-
from distutils.core import setup
13-
from distutils.core import Extension
12+
from distutils.core import setup, Extension
1413
import os
1514
import sys
1615

0 commit comments

Comments
 (0)