Skip to content

Commit 14a3566

Browse files
committed
Fix library directory path for mingw
Use `sys.base_prefix` so that it works in venv
1 parent d880596 commit 14a3566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distutils/command/build_ext.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def finalize_options(self): # noqa: C901
225225
# building third party extensions
226226
self.library_dirs.append(
227227
os.path.join(
228-
sys.prefix,
228+
sys.base_prefix,
229229
"lib",
230230
"python" + get_python_version(),
231231
config_dir_name,

0 commit comments

Comments
 (0)