26 lines
1.2 KiB
Diff
26 lines
1.2 KiB
Diff
From 9f1be3f37ead7ba6edd62447f9dcfb7ac9024ae6 Mon Sep 17 00:00:00 2001
|
|
From: Christoph Reiter <reiter.christoph@gmail.com>
|
|
Date: Tue, 21 Sep 2021 20:53:29 +0200
|
|
Subject: [PATCH 075/N] distutils: mingw sysconfig like posix
|
|
|
|
---
|
|
Lib/distutils/command/build_ext.py | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
|
|
index 1654a94..ad23163 100644
|
|
--- a/Lib/distutils/command/build_ext.py
|
|
+++ b/Lib/distutils/command/build_ext.py
|
|
@@ -221,9 +221,10 @@ def finalize_options(self):
|
|
if sys.platform[:6] == 'cygwin':
|
|
if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
|
|
# 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",
|
|
"python" + get_python_version(),
|
|
- "config"))
|
|
+ config_dir_name))
|
|
else:
|
|
# building python standard extensions
|
|
self.library_dirs.append('.')
|