Skip to content

Commit

Permalink
Merge pull request #20214 from mattip/work-in-venv
Browse files Browse the repository at this point in the history
BUG: fix test c-extension compilation inside a venv
  • Loading branch information
charris committed Oct 28, 2021
2 parents 85d15ef + 66bd550 commit 383ef2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/testing/_private/extbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def _c_compile(cfile, outputfilename, include_dirs=[], libraries=[],
library_dirs=[]):
if sys.platform == 'win32':
compile_extra = ["/we4013"]
link_extra = ["/LIBPATH:" + os.path.join(sys.exec_prefix, 'libs')]
link_extra = ["/LIBPATH:" + os.path.join(sys.base_prefix, 'libs')]
elif sys.platform.startswith('linux'):
compile_extra = [
"-O0", "-g", "-Werror=implicit-function-declaration", "-fPIC"]
Expand Down

0 comments on commit 383ef2e

Please sign in to comment.