[Normal build for Python 3.7] $ PYTHON=python3.7 tensorflow/lite/tools/pip_package/build_pip_package_with_cmake.sh [armhf cross build for Python 3.7] $ tensorflow/tools/ci_build/ci_build.sh PI-PYTHON37 tensorflow/lite/tools/pip_package/build_pip_package_with_cmake.sh armhf - lite/tools/cmake/download_toolchains.sh is added to download ARM toolchains - tools/ci_build/Dockerfile.pi* are updated to use cmake 3.16.8 PiperOrigin-RevId: 356621208 Change-Id: I7f1cb0c8389b5a5e637036b52b33e5da0afa2b77
29 lines
825 B
Docker
29 lines
825 B
Docker
FROM ubuntu:16.04
|
|
|
|
LABEL maintainer="Terry Heo <terryheo@google.com>"
|
|
|
|
ENV CI_BUILD_PYTHON=python3.8
|
|
ENV CROSSTOOL_PYTHON_INCLUDE_PATH=/usr/include/python3.8
|
|
|
|
# Copy and run the install scripts.
|
|
COPY install/*.sh /install/
|
|
RUN /install/install_bootstrap_deb_packages.sh
|
|
RUN add-apt-repository -y ppa:openjdk-r/ppa
|
|
RUN /install/install_deb_packages.sh --without_cmake
|
|
RUN /install/install_cmake.sh
|
|
|
|
# The following line installs the Python 3.8 cross-compilation toolchain.
|
|
RUN /install/install_pi_python3x_toolchain.sh "3.8"
|
|
|
|
RUN /install/install_bazel.sh
|
|
RUN /install/install_proto3.sh
|
|
RUN /install/install_buildifier.sh
|
|
RUN /install/install_auditwheel.sh
|
|
RUN /install/install_golang.sh
|
|
|
|
# Set up the master bazelrc configuration file.
|
|
COPY install/.bazelrc /etc/bazel.bazelrc
|
|
|
|
# XLA is not needed for PI
|
|
ENV TF_ENABLE_XLA=0
|