[SCons] Fix permissions error when installing to stage directory
This commit is contained in:
parent
19c71f5397
commit
baa0a24905
1 changed files with 1 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue