forked from aws/aws-iot-device-sdk-python-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
builder.json
88 lines (88 loc) · 4.28 KB
/
builder.json
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"name": "aws-iot-device-sdk-python-v2",
"hosts": {
"al2012": {
"enabled": false,
"_comment": "al2012 can't currently pull builder.py from github. SSL: CERTIFICATE_VERIFY_FAILED"
},
"linux": {
"architectures": {
"x86": {
"enabled": false,
"_comment": "this 'x86' machine actually uses 64bit python, no point in running it"
}
}
},
"windows": {
"architectures": {
"x86": {
"enabled": false,
"_comment": "this 'x86' machine actually uses 64bit python, no point in running it"
}
}
},
"manylinux": {
"post_build_steps": [
["echo", "------ Python 3.9 ------"],
["/opt/python/cp39-cp39/bin/python", "-m", "pip", "install", "--upgrade", "pip", "setuptools"],
["/opt/python/cp39-cp39/bin/python", "-m", "pip", "install", ".", "--verbose"],
["/opt/python/cp39-cp39/bin/python", "-m", "pip", "install", "boto3", "autopep8"],
["/opt/python/cp39-cp39/bin/python", "-m", "unittest", "discover", "--verbose"],
["echo", "------ Python 3.8 ------"],
["/opt/python/cp38-cp38/bin/python", "-m", "pip", "install", "--upgrade", "pip", "setuptools"],
["/opt/python/cp38-cp38/bin/python", "-m", "pip", "install", ".", "--verbose"],
["/opt/python/cp38-cp38/bin/python", "-m", "pip", "install", "boto3", "autopep8"],
["/opt/python/cp38-cp38/bin/python", "-m", "unittest", "discover", "--verbose"],
["echo", "------ Python 3.7 ------"],
["/opt/python/cp37-cp37m/bin/python", "-m", "pip", "install", "--upgrade", "pip", "setuptools"],
["/opt/python/cp37-cp37m/bin/python", "-m", "pip", "install", ".", "--verbose"],
["/opt/python/cp37-cp37m/bin/python", "-m", "pip", "install", "boto3", "autopep8"],
["/opt/python/cp37-cp37m/bin/python", "-m", "unittest", "discover", "--verbose"],
["echo", "------ Python 3.6 ------"],
["/opt/python/cp36-cp36m/bin/python", "-m", "pip", "install", "--upgrade", "pip", "setuptools"],
["/opt/python/cp36-cp36m/bin/python", "-m", "pip", "install", ".", "--verbose"],
["/opt/python/cp36-cp36m/bin/python", "-m", "pip", "install", "boto3", "autopep8"],
["/opt/python/cp36-cp36m/bin/python", "-m", "unittest", "discover", "--verbose"]
],
"run_tests": false,
"_comment": "manylinux has all its own build steps, turn off 'tests' which is where normal build steps are declared. using data to program sucks"
}
},
"targets": {
"android": {
"enabled": false,
"_comment": "disabled until we have a reason to support python on android"
}
},
"compilers": {
"_comment": "don't need compiler variants because awsiot is pure python. It will use precompiled awscrt wheels pulled from pip.",
"clang": { "enabled": false },
"gcc": {
"versions": {
"_comment": "run gcc 4.8 because that's what the linux wheels were made with",
"5": { "enabled": false },
"6": { "enabled": false },
"7": { "enabled": false },
"8": { "enabled": false }
}
},
"msvc": {
"versions": {
"_comment": "run msvc 2015 because that's what the windows wheels were made with",
"2017": { "enabled": false }
}
}
},
"upstream": [],
"downstream": [],
"_comment": "doing everything in 'test' step so that manylinux can turn off tests and do its stuff in the 'post_build_step'. using data to program really sucks",
"build": [
["{python}", "-c", "print('ignore this fake build step')"]
],
"test": [
["{python}", "-m", "pip", "install", "--upgrade", "pip", "setuptools"],
["{python}", "-m", "pip", "install", ".", "--verbose"],
["{python}", "-m", "pip", "install", "boto3", "autopep8"],
["{python}", "-m", "unittest", "discover", "--verbose"]
]
}