File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
tensorflow_lite_support/tools/pip_package/rpi Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 15
15
ARG IMAGE
16
16
FROM ${IMAGE }
17
17
ARG PYTHON_VERSION
18
+ ARG NUMPY_VERSION
18
19
19
20
COPY update_sources .sh /
20
21
RUN / update_sources .sh
21
22
22
23
RUN apt - get update & & \
24
+ DEBIAN_FRONTEND = noninteractive TZ = Etc / UTC \
23
25
apt - get install - y \
24
26
build - essential \
25
27
software - properties - common \
@@ -30,7 +32,6 @@ RUN apt-get update && \
30
32
xxd & & \
31
33
apt - get clean
32
34
33
- RUN DEBIAN_FRONTEND = noninteractive TZ = Etc / UTC apt - get - y install tzdata
34
35
# Install Python packages.
35
36
RUN dpkg - - add - architecture armhf
36
37
RUN dpkg - - add - architecture arm64
@@ -53,7 +54,7 @@ RUN curl -OL https://bootstrap.pypa.io/get-pip.py
53
54
RUN python3 get - pip .py
54
55
RUN rm get - pip .py
55
56
RUN pip3 install - - upgrade pip
56
- RUN pip3 install numpy ~ = 1.20 . 0 setuptools pybind11
57
+ RUN pip3 install numpy ~ = $ NUMPY_VERSION setuptools pybind11
57
58
RUN ln - sf / usr / include / python $PYTHON_VERSION / usr / include / python3
58
59
RUN ln - sf / usr / local / lib / python $PYTHON_VERSION / dist - packages / numpy / core / include / numpy / usr / include / python3 / numpy
59
60
RUN ln - sf / usr / bin / python3 / usr / bin / python
Original file line number Diff line number Diff line change 15
15
# Values: debian:<version>, ubuntu:<version>
16
16
BASE_IMAGE ?= ubuntu:20.04
17
17
PYTHON_VERSION ?= 3.9
18
+ NUMPY_VERSION ?= 1.21.2
18
19
19
20
# Nightly flag for build_arm_pip_package.sh
20
21
NIGHLTY_FLAG ?= --nightly_flag
46
47
@echo " make clean -- remove wheel and deb files"
47
48
48
49
docker-image :
49
- docker build -t $(TAG_IMAGE ) --build-arg IMAGE=$(BASE_IMAGE ) --build-arg PYTHON_VERSION=$(PYTHON_VERSION ) -f $(MAKEFILE_DIR ) /Dockerfile.py3 $(MAKEFILE_DIR ) /.
50
+ docker build -t $(TAG_IMAGE ) \
51
+ --build-arg IMAGE=$(BASE_IMAGE ) \
52
+ --build-arg PYTHON_VERSION=$(PYTHON_VERSION ) \
53
+ --build-arg NUMPY_VERSION=$(NUMPY_VERSION ) \
54
+ -f $(MAKEFILE_DIR ) /Dockerfile.py3 $(MAKEFILE_DIR ) /.
50
55
51
56
docker-shell : docker-image
52
57
mkdir -p $(WORKSPACE_DIR ) /bazel-ci_build-cache
You can’t perform that action at this time.
0 commit comments