[SCons] Install Python 3 module to stage directory
This commit is contained in:
parent
2a37111d33
commit
a75a9c6e21
1 changed files with 6 additions and 6 deletions
12
SConstruct
12
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']
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue