Skip to content

Commit

Permalink
Merge pull request #52 from longnguyen2004/main
Browse files Browse the repository at this point in the history
Prefer sysconfig.python_build
  • Loading branch information
jaraco authored Sep 21, 2021
2 parents 887749a + bcd1916 commit b823bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distutils/command/build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,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.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
if not sysconfig.python_build:
# building third party extensions
self.library_dirs.append(os.path.join(sys.prefix, "lib",
"python" + get_python_version(),
Expand Down

0 comments on commit b823bba

Please sign in to comment.