File: fix_deprecated_python_stdlib.patch

package info (click to toggle)
python-better-exceptions 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 632 kB
  • sloc: python: 620; sh: 108; makefile: 5
file content (23 lines) | stat: -rw-r--r-- 732 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: fix deprecated Python stdlib
distutils was removed in Python 3.12,
Instead of this, use setuptools.

Author: Seyed Mohamad Amin Modaresi <modaresisofthard@proton.me>

Forwarded: yes

diff --git a/setup.py b/setup.py
index aae2a11..a9e4096 100644
--- a/setup.py
+++ b/setup.py
@@ -4,8 +4,8 @@ from os.path import basename
 from os.path import dirname
 from os.path import join
 from os.path import splitext
-from distutils.core import setup
-from distutils.command.build import build
+from setuptools import setup
+from setuptools.command.build import build
 from setuptools.command.develop import develop
 from setuptools.command.easy_install import easy_install
 from setuptools.command.install_lib import install_lib