9
9
from pipes import quote as shlex_quote
10
10
11
11
12
- def build (project_dir , output_dir , test_command , test_requires , before_build , build_verbosity , build_selector , environment , manylinux1_images ):
12
+ def build (project_dir , output_dir , test_command , test_requires , before_build , build_verbosity , build_selector , environment , manylinux_images ):
13
13
try :
14
14
subprocess .check_call (['docker' , '--version' ])
15
15
except :
@@ -33,14 +33,21 @@ def build(project_dir, output_dir, test_command, test_requires, before_build, bu
33
33
PythonConfiguration (identifier = 'cp35-manylinux1_i686' , path = '/opt/python/cp35-cp35m' ),
34
34
PythonConfiguration (identifier = 'cp36-manylinux1_i686' , path = '/opt/python/cp36-cp36m' ),
35
35
PythonConfiguration (identifier = 'cp37-manylinux1_i686' , path = '/opt/python/cp37-cp37m' ),
36
+ PythonConfiguration (identifier = 'cp27-manylinux2010_x86_64' , path = '/opt/python/cp27-cp27m' ),
37
+ PythonConfiguration (identifier = 'cp27-manylinux2010_x86_64' , path = '/opt/python/cp27-cp27mu' ),
38
+ PythonConfiguration (identifier = 'cp34-manylinux2010_x86_64' , path = '/opt/python/cp34-cp34m' ),
39
+ PythonConfiguration (identifier = 'cp35-manylinux2010_x86_64' , path = '/opt/python/cp35-cp35m' ),
40
+ PythonConfiguration (identifier = 'cp36-manylinux2010_x86_64' , path = '/opt/python/cp36-cp36m' ),
41
+ PythonConfiguration (identifier = 'cp37-manylinux2010_x86_64' , path = '/opt/python/cp37-cp37m' ),
36
42
]
37
43
38
44
# skip builds as required
39
45
python_configurations = [c for c in python_configurations if build_selector (c .identifier )]
40
46
41
47
platforms = [
42
- ('manylinux1_x86_64' , manylinux1_images .get ('x86_64' ) or 'quay.io/pypa/manylinux1_x86_64' ),
43
- ('manylinux1_i686' , manylinux1_images .get ('i686' ) or 'quay.io/pypa/manylinux1_i686' ),
48
+ ('manylinux1_x86_64' , docker_images .get ('manylinux1_x86_64' ) or 'quay.io/pypa/manylinux1_x86_64' ),
49
+ ('manylinux1_i686' , docker_images .get ('manylinux1_i686' ) or 'quay.io/pypa/manylinux1_i686' ),
50
+ ('manylinux2010_x86_64' , docker_images .get ('manylinux2010_x86_64' ) or 'quay.io/pypa/manylinux2010_x86_64' ),
44
51
]
45
52
46
53
for platform_tag , docker_image in platforms :
@@ -78,7 +85,7 @@ def build(project_dir, output_dir, test_command, test_requires, before_build, bu
78
85
# pure python wheel - just copy
79
86
mv "$built_wheel" /tmp/delocated_wheel
80
87
else
81
- auditwheel repair "$built_wheel" -w /tmp/delocated_wheel
88
+ auditwheel repair --plat {platform_tag} "$built_wheel" -w /tmp/delocated_wheel
82
89
fi
83
90
delocated_wheel=(/tmp/delocated_wheel/*.whl)
84
91
@@ -112,6 +119,7 @@ def build(project_dir, output_dir, test_command, test_requires, before_build, bu
112
119
),
113
120
build_verbosity_flag = ' ' .join (get_build_verbosity_extra_flags (build_verbosity )),
114
121
environment_exports = '\n ' .join (environment .as_shell_commands ()),
122
+ platform_tag = platform_tag ,
115
123
uid = os .getuid (),
116
124
gid = os .getgid (),
117
125
)
0 commit comments