File: 001-remove-deprecated-distutils.patch

package info (click to toggle)
python-pycm 4.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,476 kB
  • sloc: python: 5,515; sh: 8; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 548 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
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-04-05

--- a/setup.py
+++ b/setup.py
@@ -1,11 +1,7 @@
 # -*- coding: utf-8 -*-
 """Setup module."""
 from typing import List
-try:
-    from setuptools import setup
-except ImportError:
-    from distutils.core import setup
-
+from setuptools import setup
 
 def get_requires() -> List[str]:
     """Read requirements.txt."""