python: Update to 3.9.11
This commit is contained in:
25
mingw-w64-python/0117-Prefer-sysconfig.python_build.patch
Normal file
25
mingw-w64-python/0117-Prefer-sysconfig.python_build.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
From 2f6c46cdb54145bdc480d127bfaab88418ef2d67 Mon Sep 17 00:00:00 2001
|
||||
From: Long Nguyen <nguyen.long.908132@gmail.com>
|
||||
Date: Fri, 1 Oct 2021 07:28:36 +0700
|
||||
Subject: [PATCH 117/N] Prefer sysconfig.python_build
|
||||
|
||||
---
|
||||
Lib/distutils/command/build_ext.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
|
||||
index 1598735..82a21d2 100644
|
||||
--- a/Lib/distutils/command/build_ext.py
|
||||
+++ b/Lib/distutils/command/build_ext.py
|
||||
@@ -219,7 +219,7 @@ class build_ext(Command):
|
||||
# For extensions under Cygwin, Python's library directory must be
|
||||
# appended to library_dirs
|
||||
if sys.platform[:6] == 'cygwin' or self.plat_name.startswith(('mingw')):
|
||||
- if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
|
||||
+ if not sysconfig.python_build:
|
||||
# building third party extensions
|
||||
config_dir_name = os.path.basename(sysconfig.get_config_var('LIBPL'))
|
||||
self.library_dirs.append(os.path.join(sys.prefix, "lib",
|
||||
--
|
||||
2.35.1
|
||||
|
||||
Reference in New Issue
Block a user