Skip to content

Commit

Permalink
Import importlib.util directly
Browse files Browse the repository at this point in the history
  • Loading branch information
jvansanten committed Apr 27, 2021
1 parent af9fcee commit 70c410b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ else
pydep = python.dependency()

# Find numpy
numpy = run_command(python,'-c','import importlib,os;print(os.path.join(importlib.util.find_spec("numpy").submodule_search_locations[0],"core","include"))')
numpy = run_command(python,'-c','import importlib.util,os;print(os.path.join(importlib.util.find_spec("numpy").submodule_search_locations[0],"core","include"))')
if numpy.returncode()==0
pybind_inc = include_directories(numpy.stdout().strip())
message ('Numpy found: '+ numpy.stdout().strip())
Expand Down

0 comments on commit 70c410b

Please sign in to comment.