File: 002-remove-deprecated-distutils.patch

package info (click to toggle)
python-art 6.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,076 kB
  • sloc: python: 73,473; makefile: 7; sh: 4
file content (20 lines) | stat: -rw-r--r-- 528 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Remove deprecated distutils in setup.py
 'distutils' used in setup.py deprecated in Python 3.10,
 removed in Python 3.12.
Forwarded: not-needed
Author: Yogeswaran Umasankar <yogu@debian.org>
Last-Update: 2025-08-07

--- a/setup.py
+++ b/setup.py
@@ -1,9 +1,6 @@
 # -*- coding: utf-8 -*-
 """Setup module."""
-try:
-    from setuptools import setup
-except ImportError:
-    from distutils.core import setup
+from setuptools import setup
 
 
 MINIMAL_DESCRIPTION = '''ASCII art is also known as "computer text art".