Skip to content

Commit

Permalink
[Scons] prevent installation to source directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Nov 4, 2019
1 parent ce47733 commit 8af71b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,11 @@ for option, default in python_options:
print("WARNING: Ignoring option 'python3_{0}'"
" because 'python_{0}' was also set.".format(option))

# Prevent setting prefix for Cantera installation to source directory
if os.path.abspath(env['prefix']) == Dir('.').srcnode().abspath:
print('ERROR: cannot install Cantera into source directory.')
exit(1)

if env['python_package'] == 'new':
print("WARNING: The 'new' option for the Python package is "
"deprecated and will be removed in the future. Use "
Expand Down

0 comments on commit 8af71b7

Please sign in to comment.