[SCons] Fix installation location for Python module location on OS X
Fixes #296
This commit is contained in:
parent
48c6c6b8ad
commit
03db1d3942
1 changed files with 6 additions and 6 deletions
|
|
@ -80,13 +80,13 @@ def install_module(prefix, python_version):
|
||||||
extra += ' --prefix=""'
|
extra += ' --prefix=""'
|
||||||
elif prefix:
|
elif prefix:
|
||||||
# A specific location for the Cantera python module has been given
|
# A specific location for the Cantera python module has been given
|
||||||
extra = '--user'
|
|
||||||
if localenv['OS'] == 'Darwin':
|
if localenv['OS'] == 'Darwin':
|
||||||
extra += ' --prefix=""'
|
extra = localenv.subst(' --prefix=${python%s_prefix}' % ver)
|
||||||
localenv.AppendENVPath(
|
else:
|
||||||
'PYTHONUSERBASE',
|
extra = '--user'
|
||||||
normpath(localenv.subst('$python%s_prefix' % ver))
|
localenv.AppendENVPath(
|
||||||
)
|
'PYTHONUSERBASE',
|
||||||
|
normpath(localenv.subst('$python%s_prefix' % ver)))
|
||||||
else:
|
else:
|
||||||
# Install Python module in the default location
|
# Install Python module in the default location
|
||||||
extra = ''
|
extra = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue