lib.packagesFromDirectoryRecursive: Improved documentation (#359898)
[NixPkgs.git] / pkgs / by-name / zf / zfp / python312.patch
blobacd5a9127c723bab916abf1928ab12afd5b769db
1 From 6610107a865ddaf988a29fe0f07ece05949a0c77 Mon Sep 17 00:00:00 2001
2 From: wxt <3264117476@qq.com>
3 Date: Wed, 30 Oct 2024 18:20:51 +0800
4 Subject: [PATCH] a
6 ---
7 python/scikit-build-cmake/FindPythonExtensions.cmake | 6 +++---
8 1 file changed, 3 insertions(+), 3 deletions(-)
10 diff --git a/python/scikit-build-cmake/FindPythonExtensions.cmake b/python/scikit-build-cmake/FindPythonExtensions.cmake
11 index 59b30c2..d06c9ad 100644
12 --- a/python/scikit-build-cmake/FindPythonExtensions.cmake
13 +++ b/python/scikit-build-cmake/FindPythonExtensions.cmake
14 @@ -254,7 +254,7 @@ endif()
15 include(targetLinkLibrariesWithDynamicLookup)
17 set(_command "
18 -import distutils.sysconfig
19 +import sysconfig
20 import itertools
21 import os
22 import os.path
23 @@ -266,7 +266,7 @@ rel_result = None
24 candidate_lists = []
26 try:
27 - candidate_lists.append((distutils.sysconfig.get_python_lib(),))
28 + candidate_lists.append((sysconfig.get_paths()['purelib'],))
29 except AttributeError: pass
31 try:
32 @@ -293,7 +293,7 @@ sys.stdout.write(\";\".join((
33 sys.prefix,
34 result,
35 rel_result,
36 - distutils.sysconfig.get_config_var('EXT_SUFFIX')
37 + sysconfig.get_config_var('EXT_SUFFIX')
38 )))
41 --
42 2.46.1