Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch manylinux2010 auditwheel repair so libtensorflow is not copied #435

Merged
merged 2 commits into from
Aug 22, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tools/ci_build/builds/release_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ ln -sf /usr/bin/python3.5 /usr/bin/python3 # Py36 has issues with add-apt
curl -sSOL https://bootstrap.pypa.io/get-pip.py
add-apt-repository -y ppa:deadsnakes/ppa

apt-get -y -qq update

for version in ${PYTHON_VERSIONS}; do
export PYTHON_VERSION=${version}
apt-get -y -qq update && apt-get -y -qq install ${PYTHON_VERSION}
apt-get -y -qq install ${PYTHON_VERSION}

${PYTHON_VERSION} get-pip.py -q
${PYTHON_VERSION} -m pip --version
Expand Down
9 changes: 9 additions & 0 deletions tools/ci_build/builds/tf_auditwheel
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
TF_SHARED_LIBRARY_NAME=$(grep -r TF_SHARED_LIBRARY_NAME .bazelrc | awk -F= '{print$2}')

POLICY_JSON=$(find / -name policy.json)

sed -i "s/libresolv.so.2\"/libresolv.so.2\", $TF_SHARED_LIBRARY_NAME/g" $POLICY_JSON

cat $POLICY_JSON

auditwheel $@
5 changes: 2 additions & 3 deletions tools/ci_build/builds/wheel_verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ set -e
if [[ $(uname) == "Darwin" ]]; then
CMD="delocate-wheel -w wheelhouse"
else
LD_PATH="$(cat .bazelrc | grep TF_SHARED_LIBRARY_DIR | sed 's/"//g' | awk -F'=' '{print $2}')"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LD_PATH
CMD="auditwheel repair --plat manylinux2010_x86_64"
pip3 install auditwheel==2.0.0
facaiy marked this conversation as resolved.
Show resolved Hide resolved
CMD="tools/ci_build/builds/tf_auditwheel repair --plat manylinux2010_x86_64"
fi

ls artifacts/*
Expand Down