Skip to content

Commit 9fe84c7

Browse files
committed
mbed-cli: Include library download fix
Downloading libraries is broken in both mbed-cli's latest release and HEAD for Python 3. There is a PR, which is now included as a patch[0]. Sigh. [0]:ARMmbed/mbed-cli#969
1 parent f2b4caf commit 9fe84c7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ RUN apt-get update \
1111

1212
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 2
1313

14-
RUN pip3 install -U mbed-cli yotta
14+
RUN pip3 install -U mbed-cli==1.10.4 yotta
15+
16+
RUN cd /usr/local/lib/python3.7/dist-packages/mbed \
17+
&& curl -o /tmp/mbed-py3.patch https://patch-diff.githubusercontent.com/raw/ARMmbed/mbed-cli/pull/969.patch \
18+
&& patch < /tmp/mbed-py3.patch \
19+
&& rm /tmp/mbed-py3.patch
1520

1621
RUN cd /tmp && mbed new test && cd test \
1722
&& pip3 install -r mbed-os/requirements.txt \

0 commit comments

Comments
 (0)