Skip to content
Snippets Groups Projects
Commit b3d08ff6 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Display error if cppimport is required but not installed

parent 7c39fccf
No related branches found
No related tags found
No related merge requests found
Pipeline #18010 passed
...@@ -140,7 +140,10 @@ setup_pybind11(cfg) ...@@ -140,7 +140,10 @@ setup_pybind11(cfg)
""" """
def compile(self): def compile(self):
import cppimport try:
import cppimport
except ImportError:
assert False, 'cppimport ist required for compiling pybind11 modules'
assert not self.is_cuda assert not self.is_cuda
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment