We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c04f4f7 commit 1453f7bCopy full SHA for 1453f7b
Lib/distutils/command/build_ext.py
@@ -219,7 +219,7 @@ def finalize_options(self):
219
# For extensions under Cygwin, Python's library directory must be
220
# appended to library_dirs
221
if sys.platform[:6] == 'cygwin' or self.plat_name.startswith(('mingw')):
222
- if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
+ if not sysconfig.python_build:
223
# building third party extensions
224
config_dir_name = os.path.basename(sysconfig.get_config_var('LIBPL'))
225
self.library_dirs.append(os.path.join(sys.prefix, "lib",
0 commit comments