summaryrefslogtreecommitdiff
path: root/distutils/command
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-09-21 13:03:01 -0400
committerGitHub <noreply@github.com>2021-09-21 13:03:01 -0400
commitb823bba800f3f6aaaa1c00ba6678ca14caaf9748 (patch)
tree5730f4bfcd6b25afca43bbaf95444a50bea4c5d1 /distutils/command
parent887749a40489c21c682794cc9c56f827c92f90dd (diff)
parentbcd1916ea6ce60c74e545c9ed6dd1597b81694bc (diff)
downloadpython-setuptools-git-b823bba800f3f6aaaa1c00ba6678ca14caaf9748.tar.gz
Merge pull request #52 from longnguyen2004/main
Prefer sysconfig.python_build
Diffstat (limited to 'distutils/command')
-rw-r--r--distutils/command/build_ext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/distutils/command/build_ext.py b/distutils/command/build_ext.py
index f7ab32cf..22628baf 100644
--- a/distutils/command/build_ext.py
+++ b/distutils/command/build_ext.py
@@ -220,7 +220,7 @@ class build_ext(Command):
# 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(),