Add a script to install patchelf on docker containers and add it to multipython. Install auditwheel as well.

PiperOrigin-RevId: 310203750
Change-Id: Ie6e7aa7bac7f98af75b9fb4c3cd40e9e804eb432
This commit is contained in:
Amit Patankar 2020-05-06 12:21:52 -07:00 committed by TensorFlower Gardener
parent 5be613ef4f
commit 4a9c9039a8
2 changed files with 25 additions and 0 deletions

View File

@ -17,6 +17,7 @@ RUN apt-get update && apt-get install -y \
flex \
g++ \
make \
patchelf \
rpm2cpio \
unar \
wget \
@ -55,6 +56,10 @@ RUN /install/install_bootstrap_deb_packages.sh
COPY install/install_deb_packages.sh /install/
RUN /install/install_deb_packages.sh
# Install patchelf to facilitate the creation of manylinux2010 whls.
COPY install/install_patchelf.sh /install/
RUN /install/install_patchelf.sh
# Install additional dependencies to build Python from source.
RUN apt-get update && apt-get install -y \
libncurses5-dev \
@ -82,6 +87,9 @@ RUN /install/install_pip_packages_by_version.sh "/usr/local/bin/pip3.5"
RUN /install/install_pip_packages_by_version.sh "/usr/local/bin/pip3.6"
RUN /install/install_pip_packages_by_version.sh "/usr/local/bin/pip3.7"
# Install auditwheel to create manylinux2010 compliant binaries
RUN pip3 install auditwheel
ENV CLANG_VERSION="r42cab985fd95ba4f3f290e7bb26b93805edb447d"
COPY install/install_latest_clang.sh /install/
RUN /install/install_latest_clang.sh

View File

@ -0,0 +1,17 @@
#!/bin/bash -eu
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
apt-get update && apt-get install -y patchelf