File: 0004-Lintian-fix-uses-deprecated-python-stdlib-distutils.patch

package info (click to toggle)
python-zeroconf 0.147.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,380 kB
  • sloc: python: 15,356; makefile: 23
file content (24 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: YOKOTA Hiroshi <yokota.hgml@gmail.com>
Date: Sat, 25 Jan 2025 15:24:02 +0900
Subject: Lintian fix: uses-deprecated-python-stdlib distutils

> distutils is deprecated in Python 3.10, removed in Python 3.12.

Use compatibility code from setuptools.
---
 build_ext.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build_ext.py b/build_ext.py
index ff088f8..651a4f5 100644
--- a/build_ext.py
+++ b/build_ext.py
@@ -2,7 +2,7 @@
 
 import logging
 import os
-from distutils.command.build_ext import build_ext
+import setuptools; from distutils.command.build_ext import build_ext
 from typing import Any
 
 try: