Skip to content
Snippets Groups Projects
Commit 6a4e473d authored by Nicolas "Pixel" Noble's avatar Nicolas "Pixel" Noble
Browse files

32 bits support.

parent 2e8fdbac
No related branches found
No related tags found
No related merge requests found
......@@ -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'),
......
......@@ -41,7 +41,7 @@ copy /Y vsprojects\Release\grpc_dll.dll src\python\grpcio\grpc\_cython\_windows\
copy /Y vsprojects\x64\Release\grpc_dll.dll src\python\grpcio\grpc\_cython\_windows\grpc_c.64.python || goto :error
set PATH=%PATH%;C:\Python27\scripts
set PATH=C:\%1;C:\%1\scripts;%PATH%
pip install --upgrade six
pip install --upgrade setuptools
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment