Skip to content

Commit

Permalink
Prefer sysconfig.python_build
Browse files Browse the repository at this point in the history
  • Loading branch information
longnguyen2004 authored and lazka committed Aug 25, 2023
1 parent c04f4f7 commit 1453f7b
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 @@ -219,7 +219,7 @@ def finalize_options(self):
# For extensions under Cygwin, Python's library directory must be
# appended to library_dirs
if sys.platform[:6] == 'cygwin' or self.plat_name.startswith(('mingw')):
if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
if not sysconfig.python_build:
# 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",
Expand Down

0 comments on commit 1453f7b

Please sign in to comment.