Merge pull request #5055 from jtattermusch/python_mac_artifact

Build python artifact on Mac
pull/5057/merge
Michael Lumish 9 years ago
commit bf9ac1fcc7
  1. 7
      tools/run_tests/artifact_targets.py
  2. 10
      tools/run_tests/build_artifact_python.sh
  3. 0
      tools/run_tests/build_package_node.sh

@ -96,8 +96,8 @@ class PythonArtifact:
if self.platform == 'windows':
raise Exception('Not supported yet.')
else:
environ = {}
if self.platform == 'linux':
environ = {}
if self.arch == 'x86':
environ['SETARCH_CMD'] = 'linux32'
return create_docker_jobspec(self.name,
@ -105,8 +105,10 @@ class PythonArtifact:
'tools/run_tests/build_artifact_python.sh',
environ=environ)
else:
environ['SKIP_PIP_INSTALL'] = 'TRUE'
return create_jobspec(self.name,
['tools/run_tests/build_artifact_python.sh'])
['tools/run_tests/build_artifact_python.sh'],
environ=environ)
def __str__(self):
return self.name
@ -231,6 +233,7 @@ def targets():
for arch in ('x86', 'x64')] +
[PythonArtifact('linux', 'x86'),
PythonArtifact('linux', 'x64'),
PythonArtifact('macos', 'x64'),
RubyArtifact('linux', 'x86'),
RubyArtifact('linux', 'x64'),
RubyArtifact('macos', 'x64')])

@ -32,10 +32,12 @@ set -ex
cd $(dirname $0)/../..
pip install --upgrade six
pip install --upgrade setuptools
pip install -rrequirements.txt
if [ "$SKIP_PIP_INSTALL" == "" ]
then
pip install --upgrade six
pip install --upgrade setuptools
pip install -rrequirements.txt
fi
GRPC_PYTHON_BUILD_WITH_CYTHON=1 ${SETARCH_CMD} python setup.py \
bdist_wheel \

Loading…
Cancel
Save