From bcd1916ea6ce60c74e545c9ed6dd1597b81694bc Mon Sep 17 00:00:00 2001 From: Long Nguyen Date: Sun, 5 Sep 2021 23:17:11 +0700 Subject: Prefer sysconfig.python_build --- distutils/command/build_ext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'distutils/command') 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(), -- cgit v1.2.1