@@ -251,6 +251,9 @@ def candidate_paths(suffix=_SHLIB_SUFFIX):
251251 _append_truthy (lib_dirs , _get_config_var ("LIBPL" ))
252252 _append_truthy (lib_dirs , _get_config_var ("srcdir" ))
253253 _append_truthy (lib_dirs , _get_config_var ("LIBDIR" ))
254+ if _is_windows or _is_mingw or _is_cygwin :
255+ # On Windows DLLs go in bin/ while static libraries go in lib/
256+ _append_truthy (lib_dirs , _get_config_var ("BINDIR" ))
254257
255258 # LIBPL seems to be the right config_var to use. It is the one
256259 # used in python-config when shared library is not enabled:
@@ -414,11 +417,11 @@ def _cli_find_libpython(cli_op, verbose):
414417
415418
416419def _log_platform_info ():
417- _logger . debug ( "_is_windows = %s" , _is_windows )
418- _logger . debug ( "_is_apple = %s" , _is_apple )
419- _logger . debug ( "_is_mingw = %s" , _is_mingw )
420- _logger . debug ( "_is_msys = %s" , _is_cygwin )
421- _logger . debug ( "_is_posix = %s" , _is_posix )
420+ print ( f"is_windows = { _is_windows } " )
421+ print ( f"is_apple = { _is_apple } " )
422+ print ( f"is_mingw = { _is_mingw } " )
423+ print ( f"is_msys = { _is_cygwin } " )
424+ print ( f"is_posix = { _is_posix } " )
422425
423426
424427def main (args = None ):
0 commit comments