Install future-fstrings to get f-strings in Python 3.5 and earlier.
This commit is contained in:
parent
2cbc8bbf0c
commit
6585ce3a09
@ -23,6 +23,7 @@ if [ -n "`uname -a | grep -i arch`" ]
|
|||||||
then
|
then
|
||||||
sudo pacman -Sy --noconfirm \
|
sudo pacman -Sy --noconfirm \
|
||||||
python \
|
python \
|
||||||
|
python-pip \
|
||||||
make \
|
make \
|
||||||
m4 \
|
m4 \
|
||||||
gcc \
|
gcc \
|
||||||
@ -36,6 +37,7 @@ if [ -n "`uname -a | grep -i ubuntu`" ]
|
|||||||
then
|
then
|
||||||
sudo apt-get install -y make \
|
sudo apt-get install -y make \
|
||||||
python3 \
|
python3 \
|
||||||
|
python3-pip \
|
||||||
make \
|
make \
|
||||||
m4 \
|
m4 \
|
||||||
gcc \
|
gcc \
|
||||||
@ -45,6 +47,8 @@ sudo apt-get install -y make \
|
|||||||
curl
|
curl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
pip3 install future-fstrings
|
||||||
|
|
||||||
if [ -n "`uname -a | grep -i ubuntu`" ]
|
if [ -n "`uname -a | grep -i ubuntu`" ]
|
||||||
then
|
then
|
||||||
echo "ubuntu"
|
echo "ubuntu"
|
||||||
|
@ -8,6 +8,7 @@ then
|
|||||||
pacman -Sy
|
pacman -Sy
|
||||||
sudo pacman -S --noconfirm \
|
sudo pacman -S --noconfirm \
|
||||||
python \
|
python \
|
||||||
|
python-pip \
|
||||||
libevdev \
|
libevdev \
|
||||||
perl \
|
perl \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
@ -23,6 +24,7 @@ else
|
|||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
apt-get -y -qq install \
|
apt-get -y -qq install \
|
||||||
python3 \
|
python3 \
|
||||||
|
python3-pip \
|
||||||
libev-dev \
|
libev-dev \
|
||||||
perl \
|
perl \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
@ -34,3 +36,5 @@ else
|
|||||||
rsync \
|
rsync \
|
||||||
git
|
git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
pip3 install future-fstrings
|
||||||
|
@ -4,4 +4,4 @@ Build & test with:
|
|||||||
|
|
||||||
Run with
|
Run with
|
||||||
|
|
||||||
python ./generator.py
|
python3 ./generator.py
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
|
(rule
|
||||||
|
(target generator_fstrings.py)
|
||||||
|
(deps generator.py)
|
||||||
|
(action (with-stdout-to generator_fstrings.py (run sh -c "if python3 -c 'f\"\"' 2>/dev/null; then :; else echo '# -*- coding: future_fstrings -*-'; fi; cat generator.py")))
|
||||||
|
)
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
(target generated_fold.ml)
|
(target generated_fold.ml)
|
||||||
(deps generator.py)
|
(deps generator_fstrings.py)
|
||||||
(action (with-stdout-to generated_fold.ml (run python3 ./generator.py)))
|
(action (with-stdout-to generated_fold.ml (run python3 ./generator_fstrings.py)))
|
||||||
; (mode (promote (until-clean))) ; If this is uncommented, then "dune build -p ligo" can't find the file (but "dune build" can)
|
(mode (promote (until-clean)))
|
||||||
)
|
)
|
||||||
; (library
|
; (library
|
||||||
; (name adt_generator)
|
; (name adt_generator)
|
||||||
|
@ -21,7 +21,8 @@ FROM node:12-buster
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apt-get update && apt-get -y install python3 libev-dev perl pkg-config libgmp-dev libhidapi-dev m4 libcap-dev bubblewrap rsync
|
RUN apt-get update && apt-get -y install python3 python3-pip libev-dev perl pkg-config libgmp-dev libhidapi-dev m4 libcap-dev bubblewrap rsync
|
||||||
|
RUN pip3 install future-fstrings
|
||||||
|
|
||||||
COPY ligo_deb10.deb /tmp/ligo_deb10.deb
|
COPY ligo_deb10.deb /tmp/ligo_deb10.deb
|
||||||
RUN dpkg -i /tmp/ligo_deb10.deb && rm /tmp/ligo_deb10.deb
|
RUN dpkg -i /tmp/ligo_deb10.deb && rm /tmp/ligo_deb10.deb
|
||||||
|
Loading…
Reference in New Issue
Block a user