Skip to content

Commit 8853fd7

Browse files
committed
setup.py: use setuptools
As per [1] distutils is now deprecated in Python 3.10, and will be entirely removed in Python 3.12. Setuptools has an almost identical API, so simply switch to that. [1] https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated Closes #52
1 parent 59a9c2a commit 8853fd7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

setup.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@
99
#-
1010

1111
import sys
12-
import distutils.core
12+
import setuptools
1313

1414
if sys.version_info < (3, 5):
1515
sys.stderr.write("This module requires Python 3.5 or later.\n")
1616
sys.exit(-1)
1717

18-
distutils.core.setup \
19-
(
18+
setuptools.setup(
2019
name = "DBussy",
2120
version = "1.3",
2221
description = "language bindings for libdbus, for Python 3.5 or later",
@@ -27,4 +26,4 @@
2726
license = "LGPL v2.1+",
2827
python_requires='>=3.5',
2928
py_modules = ["dbussy", "ravel"],
30-
)
29+
)

0 commit comments

Comments
 (0)