Skip to content

Commit

Permalink
Remove non-manylinux linux .whl artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
kpayson64 committed Jul 21, 2016
1 parent 95f04bd commit cc17af1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions tools/run_tests/artifact_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def build_jobspec(self):
# need to do this manually...
environ['CFLAGS'] = '-DGPR_MANYLINUX1=1'
environ['BUILD_HEALTH_CHECKING'] = 'TRUE'
environ['BUILD_MANYLINUX_WHEEL'] = 'TRUE'
return create_docker_jobspec(self.name,
'tools/dockerfile/grpc_artifact_python_manylinux_%s' % self.arch,
'tools/run_tests/build_artifact_python.sh',
Expand Down
4 changes: 3 additions & 1 deletion tools/run_tests/build_artifact_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,15 @@ CFLAGS="$CFLAGS -fno-wrapv" ${SETARCH_CMD} \
${PYTHON} tools/distrib/python/grpcio_tools/setup.py bdist_wheel

mkdir -p artifacts
if command -v ${AUDITWHEEL}
if [ "$BUILD_MANYLINUX_WHEEL" != "" ]
then
for wheel in dist/*.whl; do
${AUDITWHEEL} repair $wheel -w artifacts/
rm $wheel
done
for wheel in tools/distrib/python/grpcio_tools/dist/*.whl; do
${AUDITWHEEL} repair $wheel -w artifacts/
rm $wheel
done
fi

Expand Down

0 comments on commit cc17af1

Please sign in to comment.