Skip to content

Commit

Permalink
Fail installation through pip if CMake is not found (fixes #64)
Browse files Browse the repository at this point in the history
  • Loading branch information
metthal committed Feb 20, 2020
1 parent 6d29bbb commit d7b9247
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ def run(self):

try:
subprocess.check_output(['cmake', '--version'])
except OSError:
print('CMake is not installed on your system or it is not in PATH. Please, make sure CMake is accessible through PATH.', file=sys.stderr)
return
except OSError as err:
raise OSError('CMake is not installed on your system or it is not in PATH. Please, make sure CMake is accessible through PATH.') from err

root_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
build_dir = os.path.join(root_dir, 'build')
Expand Down

0 comments on commit d7b9247

Please sign in to comment.