From 03db1d3942d8a9682093c8e366263b9d183969cb Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Fri, 13 Nov 2015 17:45:21 -0800 Subject: [PATCH] [SCons] Fix installation location for Python module location on OS X Fixes #296 --- interfaces/cython/SConscript | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/interfaces/cython/SConscript b/interfaces/cython/SConscript index c843ddc7a..ea2735e0c 100644 --- a/interfaces/cython/SConscript +++ b/interfaces/cython/SConscript @@ -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 = ''