Debian Codegraph @

debian/patches/replace_deprecated_distutils.patch

raw symbols SCIP
1 Description: Replace deprecated distutils.sysconfig.get_config_vars() with sysconfig.get_config_vars()
2 Author: أحمد المحمودي (Ahmed El-Mahmoudy) <[email protected]>
3 Forwarded: https://github.com/cocotb/cocotb/pull/5361
4 Index: cocotb/cocotb_build_libs.py
5 ===================================================================
6 --- cocotb.orig/cocotb_build_libs.py 2026-02-16 20:21:40.817364214 +0100
7 +++ cocotb/cocotb_build_libs.py 2026-02-24 02:37:14.418586868 +0100
8 @@ -2,7 +2,6 @@
9 # Licensed under the Revised BSD License, see LICENSE for details.
10 # SPDX-License-Identifier: BSD-3-Clause
11
12 -import distutils
13 import logging
14 import os
15 import subprocess
16 @@ -666,7 +665,7 @@
17
18
19 def get_ext():
20 - cfg_vars = distutils.sysconfig.get_config_vars()
21 + cfg_vars = sysconfig.get_config_vars()
22
23 if sys.platform == "darwin":
24 cfg_vars["LDSHARED"] = cfg_vars["LDSHARED"].replace("-bundle", "-dynamiclib")