1 #!/usr/bin/env bash 2 # Copyright 2015 The TensorFlow Authors. All Rights Reserved. 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 # ============================================================================== 16 17 set -e 18 19 sudo pip3 install auditwheel==1.5.0 20 21 set +e 22 patchelf_location=$(which patchelf) 23 if [[ -z "$patchelf_location" ]]; then 24 set -e 25 # Install patchelf from source (it does not come with trusty package) 26 wget https://nixos.org/releases/patchelf/patchelf-0.9/patchelf-0.9.tar.bz2 27 tar xfa patchelf-0.9.tar.bz2 28 cd patchelf-0.9 29 ./configure --prefix=/usr/local 30 make 31 sudo make install 32 fi 33 cd .. 34