-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.py
More file actions
executable file
·32 lines (21 loc) · 837 Bytes
/
build.py
File metadata and controls
executable file
·32 lines (21 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from bincrafters import build_template_header_only
import os
if __name__ == "__main__":
builder = build_template_header_only.get_builder()
arch = os.getenv('conan_archs', None)
updated_settings={
'arch': arch,
}
updated_options={
"python_dev_config:python" : os.getenv("conan_python_path", "python"),
}
updated_builds = []
for settings, options, env_vars, build_requires, reference in builder.items:
if arch is not None:
updated_builds.append([updated_settings, updated_options, env_vars, build_requires])
else:
updated_builds.append([settings, updated_options, env_vars, build_requires])
builder.builds = updated_builds
builder.run()