File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,11 @@ add-apt-repository -y ppa:deadsnakes/ppa
34
34
apt-get -y -qq update
35
35
36
36
for version in ${PYTHON_VERSIONS} ; do
37
- export PYTHON_VERSION= ${version}
38
- apt-get -y -qq install ${PYTHON_VERSION}
37
+ apt-get -y -qq install ${version}
38
+ ln -sf /usr/bin/ ${version} /usr/bin/python
39
39
40
- ${PYTHON_VERSION} get-pip.py -q
41
- ${PYTHON_VERSION} -m pip --version
40
+ python get-pip.py -q
41
+ python -m pip --version
42
42
43
43
# Link TF dependency
44
44
yes ' y' | ./configure.sh --quiet
Original file line number Diff line number Diff line change 16
16
17
17
set -e
18
18
19
+ SITE_PKG_LOCATION=$( python -c " import site; print(site.getsitepackages()[0])" )
19
20
TF_SHARED_LIBRARY_NAME=$( grep -r TF_SHARED_LIBRARY_NAME .bazelrc | awk -F= ' {print$2}' )
20
- POLICY_JSON=" /usr/local/lib/python3.6/dist-packages /auditwheel/policy/policy.json"
21
+ POLICY_JSON=" ${SITE_PKG_LOCATION} /auditwheel/policy/policy.json"
21
22
sed -i " s/libresolv.so.2\" /libresolv.so.2\" , $TF_SHARED_LIBRARY_NAME /g" $POLICY_JSON
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ if [[ $(uname) == "Darwin" ]]; then
20
20
CMD=" delocate-wheel -w wheelhouse"
21
21
elif [[ $( uname) == " Linux" ]]; then
22
22
apt-get -y -qq update && apt-get install patchelf
23
- pip3.6 install -U auditwheel==2.0.0
23
+ python -m pip install -U auditwheel==2.0.0
24
24
tools/ci_build/builds/tf_auditwheel_patch.sh
25
25
CMD=" auditwheel repair --plat manylinux2010_x86_64"
26
26
fi
You can’t perform that action at this time.
0 commit comments