mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[SCons] Fix installation location for Python module location on OS X
Fixes #296
This commit is contained in:
@@ -80,13 +80,13 @@ def install_module(prefix, python_version):
|
||||
extra += ' --prefix=""'
|
||||
elif prefix:
|
||||
# A specific location for the Cantera python module has been given
|
||||
extra = '--user'
|
||||
if localenv['OS'] == 'Darwin':
|
||||
extra += ' --prefix=""'
|
||||
localenv.AppendENVPath(
|
||||
'PYTHONUSERBASE',
|
||||
normpath(localenv.subst('$python%s_prefix' % ver))
|
||||
)
|
||||
extra = localenv.subst(' --prefix=${python%s_prefix}' % ver)
|
||||
else:
|
||||
extra = '--user'
|
||||
localenv.AppendENVPath(
|
||||
'PYTHONUSERBASE',
|
||||
normpath(localenv.subst('$python%s_prefix' % ver)))
|
||||
else:
|
||||
# Install Python module in the default location
|
||||
extra = ''
|
||||
|
||||
Reference in New Issue
Block a user