13
13
def build (project_dir , package_name , output_dir , test_command , test_requires , before_build , skip , environment ):
14
14
PythonConfiguration = namedtuple ('PythonConfiguration' , ['version' , 'identifier' , 'url' ])
15
15
python_configurations = [
16
- PythonConfiguration (version = '2.7' , identifier = 'cp27-macosx_10_6_intel' , url = 'https://www.python.org/ftp/python/2.7.13 /python-2.7.13 -macosx10.6.pkg' ),
16
+ PythonConfiguration (version = '2.7' , identifier = 'cp27-macosx_10_6_intel' , url = 'https://www.python.org/ftp/python/2.7.14 /python-2.7.14 -macosx10.6.pkg' ),
17
17
PythonConfiguration (version = '3.4' , identifier = 'cp34-macosx_10_6_intel' , url = 'https://www.python.org/ftp/python/3.4.4/python-3.4.4-macosx10.6.pkg' ),
18
- PythonConfiguration (version = '3.5' , identifier = 'cp35-macosx_10_6_intel' , url = 'https://www.python.org/ftp/python/3.5.3 /python-3.5.3 -macosx10.6.pkg' ),
19
- PythonConfiguration (version = '3.6' , identifier = 'cp36-macosx_10_6_intel' , url = 'https://www.python.org/ftp/python/3.6.0 /python-3.6.0 -macosx10.6.pkg' ),
18
+ PythonConfiguration (version = '3.5' , identifier = 'cp35-macosx_10_6_intel' , url = 'https://www.python.org/ftp/python/3.5.4 /python-3.5.4 -macosx10.6.pkg' ),
19
+ PythonConfiguration (version = '3.6' , identifier = 'cp36-macosx_10_6_intel' , url = 'https://www.python.org/ftp/python/3.6.5 /python-3.6.5 -macosx10.6.pkg' ),
20
20
]
21
+ get_pip_url = 'https://bootstrap.pypa.io/get-pip.py'
22
+ get_pip_script = '/tmp/get-pip.py'
21
23
22
24
pkgs_output = subprocess .check_output (['pkgutil' , '--pkgs' ])
23
25
if sys .version_info [0 ] >= 3 :
@@ -35,6 +37,9 @@ def call(args, env=None, cwd=None, shell=False):
35
37
36
38
abs_project_dir = os .path .abspath (project_dir )
37
39
40
+ # get latest pip once and for all
41
+ call (['curl' , '-L' , '-o' , get_pip_script , get_pip_url ])
42
+
38
43
for config in python_configurations :
39
44
if skip (config .identifier ):
40
45
print ('cibuildwheel: Skipping build %s' % config .identifier , file = sys .stderr )
@@ -63,7 +68,7 @@ def call(args, env=None, cwd=None, shell=False):
63
68
call ([python , '--version' ], env = env )
64
69
65
70
# install pip & wheel
66
- call ([python , '-m' , 'ensurepip ' , '--upgrade ' ], env = env )
71
+ call ([python , get_pip_script , '--no-setuptools ' , '--no-wheel ' ], env = env )
67
72
call ([pip , '--version' ], env = env )
68
73
call ([pip , 'install' , 'wheel' ], env = env )
69
74
call ([pip , 'install' , 'delocate' ], env = env )
0 commit comments