From c8d4450fd5323469829c5b202d219f8f950af66e Mon Sep 17 00:00:00 2001 From: Naveen M K Date: Wed, 8 Nov 2023 20:41:08 +0530 Subject: [PATCH] Fix library directory path for mingw Use `sys.base_prefix` so that it works in venv --- distutils/command/build_ext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distutils/command/build_ext.py b/distutils/command/build_ext.py index 98658f97..6d7f4159 100644 --- a/distutils/command/build_ext.py +++ b/distutils/command/build_ext.py @@ -225,7 +225,7 @@ def finalize_options(self): # noqa: C901 # building third party extensions self.library_dirs.append( os.path.join( - sys.prefix, + sys.base_prefix, "lib", "python" + get_python_version(), config_dir_name,