From a75a9c6e219b1fbf159a05291402db2b482ac91c Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 9 Jan 2014 23:12:27 +0000 Subject: [PATCH] [SCons] Install Python 3 module to stage directory --- SConstruct | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SConstruct b/SConstruct index 791bbab24..1465026f2 100644 --- a/SConstruct +++ b/SConstruct @@ -1048,14 +1048,14 @@ addInstallActions = ('install' in COMMAND_LINE_TARGETS or # Directories where things will be staged for package creation. These # variables should always be used by the Install(...) targets if env['stage_dir']: - pp = env['python_prefix'] instRoot = pjoin(os.getcwd(), env['stage_dir'], stripDrive(env['prefix']).strip('/\\')) - if pp: - env['python_prefix'] = pjoin(os.getcwd(), env['stage_dir'], - stripDrive(pp).strip('/\\')) - else: - env['python_prefix'] = pjoin(os.getcwd(), env['stage_dir']) + for k in ('python_prefix', 'python3_prefix'): + if env[k]: + env[k] = pjoin(os.getcwd(), env['stage_dir'], + stripDrive(env[k]).strip('/\\')) + else: + env[k] = pjoin(os.getcwd(), env['stage_dir']) else: instRoot = env['prefix']