Skip to content

Commit

Permalink
[SCons] Fix permissions error when installing to stage directory
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Nov 3, 2016
1 parent 19c71f5 commit baa0a24
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -307,18 +307,11 @@ for key,value in defaults.__dict__.items():
# *** Read user-configurable options ***
# **************************************

# This check prevents requiring root permissions to build when the
# installation directory is not writable by the current user.
if 'install' in COMMAND_LINE_TARGETS:
installPathTest = PathVariable.PathIsDirCreate
else:
installPathTest = PathVariable.PathAccept

config_options = [
PathVariable(
'prefix',
'Set this to the directory where Cantera should be installed.',
defaults.prefix, installPathTest),
defaults.prefix, PathVariable.PathAccept),
EnumVariable(
'python_package',
"""If you plan to work in Python, or you want to use the graphical
Expand Down

0 comments on commit baa0a24

Please sign in to comment.