Skip to content

Commit

Permalink
distutils: mingw sysconfig like posix
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Jul 19, 2023
1 parent a136fcb commit 705aa83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/distutils/command/build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('.')
Expand Down

0 comments on commit 705aa83

Please sign in to comment.