|
|
|
@ -80,6 +80,11 @@ def macos_arch_env(arch): |
|
|
|
|
return {'CFLAGS': arch_arg, 'LDFLAGS': arch_arg} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
python_version_arch_map = { |
|
|
|
|
'x86': 'Python27_32bits', |
|
|
|
|
'x64': 'Python27' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class PythonArtifact: |
|
|
|
|
"""Builds Python artifacts.""" |
|
|
|
|
|
|
|
|
@ -88,6 +93,7 @@ class PythonArtifact: |
|
|
|
|
self.platform = platform |
|
|
|
|
self.arch = arch |
|
|
|
|
self.labels = ['artifact', 'python', platform, arch] |
|
|
|
|
self.python_version = python_version_arch_map[arch] |
|
|
|
|
|
|
|
|
|
def pre_build_jobspecs(self): |
|
|
|
|
return [] |
|
|
|
@ -103,7 +109,9 @@ class PythonArtifact: |
|
|
|
|
environ=environ) |
|
|
|
|
elif self.platform == 'windows': |
|
|
|
|
return create_jobspec(self.name, |
|
|
|
|
['tools\\run_tests\\build_artifact_python.bat'], |
|
|
|
|
['tools\\run_tests\\build_artifact_python.bat', |
|
|
|
|
self.python_version |
|
|
|
|
], |
|
|
|
|
shell=True) |
|
|
|
|
else: |
|
|
|
|
environ['SKIP_PIP_INSTALL'] = 'TRUE' |
|
|
|
@ -236,6 +244,7 @@ def targets(): |
|
|
|
|
[PythonArtifact('linux', 'x86'), |
|
|
|
|
PythonArtifact('linux', 'x64'), |
|
|
|
|
PythonArtifact('macos', 'x64'), |
|
|
|
|
PythonArtifact('windows', 'x86'), |
|
|
|
|
PythonArtifact('windows', 'x64'), |
|
|
|
|
RubyArtifact('linux', 'x86'), |
|
|
|
|
RubyArtifact('linux', 'x64'), |
|
|
|
|