Skip to content

Commit

Permalink
distutils: mingw add LIBPL to library dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexpux authored and lazka committed Jul 19, 2023
1 parent 812e7ee commit 9dba083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/distutils/command/build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def finalize_options(self):

# For extensions under Cygwin, Python's library directory must be
# appended to library_dirs
if sys.platform[:6] == 'cygwin':
if sys.platform[:6] == 'cygwin' or self.plat_name.startswith(('mingw')):
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'))
Expand Down

0 comments on commit 9dba083

Please sign in to comment.