mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 00:21:13 +00:00
Pass env to bii
This commit is contained in:
parent
38b5f573dd
commit
3a9b7ad8b6
@ -19,14 +19,15 @@ elif os_name == 'osx':
|
|||||||
with Downloader().download('http://www.biicode.com/downloads/latest/macos') as f:
|
with Downloader().download('http://www.biicode.com/downloads/latest/macos') as f:
|
||||||
check_call(['sudo', 'installer', '-pkg', f, '-target', '/'])
|
check_call(['sudo', 'installer', '-pkg', f, '-target', '/'])
|
||||||
|
|
||||||
|
env = os.environ.copy()
|
||||||
|
env['PATH'] = os.path.abspath(os.path.dirname(cmake_program)) + ':' + env['PATH']
|
||||||
|
env['CMAKE_ROOT'] = os.path.abspath(cmake_dir)
|
||||||
|
|
||||||
project_dir = 'biicode_project'
|
project_dir = 'biicode_project'
|
||||||
check_call(['bii', 'init', project_dir])
|
check_call(['bii', 'init', project_dir], env=env)
|
||||||
cppformat_dir = os.path.join(project_dir, 'blocks/vitaut/cppformat')
|
cppformat_dir = os.path.join(project_dir, 'blocks/vitaut/cppformat')
|
||||||
shutil.copytree('.', cppformat_dir,
|
shutil.copytree('.', cppformat_dir,
|
||||||
ignore=shutil.ignore_patterns('biicode_project', cmake_dir))
|
ignore=shutil.ignore_patterns('biicode_project', cmake_dir))
|
||||||
for f in glob.glob('support/biicode/*'):
|
for f in glob.glob('support/biicode/*'):
|
||||||
shutil.copy(f, cppformat_dir)
|
shutil.copy(f, cppformat_dir)
|
||||||
env = os.environ.copy()
|
|
||||||
env['PATH'] = os.path.abspath(os.path.dirname(cmake_program)) + ':' + env['PATH']
|
|
||||||
env['CMAKE_ROOT'] = os.path.abspath(cmake_dir)
|
|
||||||
check_call(['bii', 'cpp:build'], cwd=project_dir, env=env)
|
check_call(['bii', 'cpp:build'], cwd=project_dir, env=env)
|
||||||
|
Loading…
Reference in New Issue
Block a user