Skip to content

Commit

Permalink
Merged in tbb_error (pull request #196)
Browse files Browse the repository at this point in the history
Improved tbb error checking.

Approved-by: Vyas Ramasubramani <vramasub@umich.edu>
  • Loading branch information
bdice authored and vyasr committed Aug 16, 2018
2 parents 48732c6 + 93ce31b commit e1c2182
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Expand Up @@ -265,15 +265,15 @@ def _redirect_stderr(to_fd, original_stderr_fd):
except SystemExit:
# For now, the only error we're explicitly checking for is whether or not
# TBB is missing
err_str = "tbb/tbb.h"
err_str = "'tbb/tbb.h' file not found"
err_out = tfile.read().decode()
sys.stderr.write(err_out)
if err_str in err_out:
sys.stderr.write("Unable to find tbb. If you have TBB on your "
sys.stderr.write("\nUnable to find tbb. If you have TBB on your "
"system, try specifying the location using the "
"--TBB-ROOT or the --TBB-INCLUDE/--TBB-LINK "
"arguments to setup.py.\n")
else:
sys.stderr.write(err_out)
raise
except: # noqa
sys.stderr.write(tfile.read().decode())
Expand Down

0 comments on commit e1c2182

Please sign in to comment.