Skip to content

Commit 02dcf4a

Browse files
committed
Patch auditwheel to whitelist tensorflow dependency
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
1 parent 705ab78 commit 02dcf4a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.travis/python.release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ else
3535

3636
ls dist/*
3737
for f in dist/*.whl; do
38-
docker run -i --rm --user $(id -u):$(id -g) -v /etc/password:/etc/password -v $PWD:/v -w /v --net=host -e LD_LIBRARY_PATH=/v/build quay.io/pypa/manylinux2010_x86_64 auditwheel repair --plat manylinux2010_x86_64 $f
38+
docker run -i --rm -v $PWD:/v -w /v --net=host quay.io/pypa/manylinux2010_x86_64 bash -x -e /v/third_party/tf/auditwheel repair --plat manylinux2010_x86_64 $f
3939
done
40+
sudo chown -R $(id -nu):$(id -ng) .
4041
ls wheelhouse/*
4142
fi

third_party/tf/auditwheel

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
TF_SHARED_LIBRARY_NAME=$(grep -r TF_SHARED_LIBRARY_NAME .bazelrc | awk -F= '{print$2}')
2+
3+
POLICY_JSON=$(find / -name policy.json)
4+
5+
sed -i "s/libresolv.so.2\"/libresolv.so.2\", $TF_SHARED_LIBRARY_NAME/g" $POLICY_JSON
6+
7+
cat $POLICY_JSON
8+
9+
auditwheel $@

0 commit comments

Comments
 (0)