Skip to content

Commit 383ef2e

Browse files
authored
Merge pull request numpy#20214 from mattip/work-in-venv
BUG: fix test c-extension compilation inside a venv
2 parents 85d15ef + 66bd550 commit 383ef2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/testing/_private/extbuild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def _c_compile(cfile, outputfilename, include_dirs=[], libraries=[],
183183
library_dirs=[]):
184184
if sys.platform == 'win32':
185185
compile_extra = ["/we4013"]
186-
link_extra = ["/LIBPATH:" + os.path.join(sys.exec_prefix, 'libs')]
186+
link_extra = ["/LIBPATH:" + os.path.join(sys.base_prefix, 'libs')]
187187
elif sys.platform.startswith('linux'):
188188
compile_extra = [
189189
"-O0", "-g", "-Werror=implicit-function-declaration", "-fPIC"]

0 commit comments

Comments
 (0)