Skip to content

Commit ec0bd2b

Browse files
committed
distutils: mingw sysconfig like posix
1 parent 7a8eda8 commit ec0bd2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/distutils/command/build_ext.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,10 @@ def finalize_options(self):
221221
if sys.platform[:6] == 'cygwin':
222222
if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
223223
# building third party extensions
224+
config_dir_name = os.path.basename(sysconfig.get_config_var('LIBPL'))
224225
self.library_dirs.append(os.path.join(sys.prefix, "lib",
225226
"python" + get_python_version(),
226-
"config"))
227+
config_dir_name))
227228
else:
228229
# building python standard extensions
229230
self.library_dirs.append('.')

0 commit comments

Comments
 (0)