Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
b6fd52e
1
Parent(s):
5d83b3a
Improve readability of incremental install simulator
Browse files
pysr/test/incremental_install_simulator.dockerfile
CHANGED
@@ -3,15 +3,15 @@ FROM debian:bullseye-slim
|
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
|
5 |
# Install juliaup and pyenv:
|
6 |
-
RUN apt-get update && apt-get install -y curl
|
|
|
|
|
|
|
|
|
7 |
|
8 |
# Install juliaup:
|
9 |
RUN curl -fsSL https://install.julialang.org | sh -s -- -y
|
10 |
|
11 |
-
RUN apt-get install -y git build-essential libssl-dev zlib1g-dev libbz2-dev \
|
12 |
-
libreadline-dev libsqlite3-dev libncurses5-dev libncursesw5-dev \
|
13 |
-
xz-utils libffi-dev liblzma-dev
|
14 |
-
|
15 |
# Install pyenv:
|
16 |
RUN curl -fsSL curl https://pyenv.run | sh && \
|
17 |
echo 'export PATH="/root/.pyenv/bin:$PATH"' >> ~/.bashrc && \
|
@@ -26,22 +26,23 @@ RUN juliaup add 1.8 && juliaup default 1.8
|
|
26 |
RUN pyenv install 3.9.2 && pyenv global 3.9.2
|
27 |
RUN python3 -m pip install --upgrade pip
|
28 |
|
29 |
-
#
|
30 |
WORKDIR /pysr
|
31 |
ADD ./requirements.txt /pysr/requirements.txt
|
32 |
RUN python3 -m pip install -r /pysr/requirements.txt
|
33 |
|
34 |
ADD ./setup.py /pysr/setup.py
|
35 |
ADD ./pysr/ /pysr/pysr/
|
36 |
-
RUN python3 -m pip install .
|
37 |
|
|
|
|
|
38 |
RUN python3 -m pysr install
|
39 |
|
40 |
# Change Python version:
|
41 |
RUN pyenv install 3.10 && pyenv global 3.10 && pyenv uninstall -f 3.9.2
|
42 |
RUN python3 -m pip install --upgrade pip
|
43 |
|
44 |
-
#
|
45 |
RUN python3 -m pip install .
|
46 |
RUN rm -r ~/.julia/environments/pysr-0.14.2
|
47 |
RUN python3 -m pysr install
|
|
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
|
5 |
# Install juliaup and pyenv:
|
6 |
+
RUN apt-get update && apt-get install -y curl git build-essential \
|
7 |
+
libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev \
|
8 |
+
libncurses5-dev libncursesw5-dev xz-utils libffi-dev liblzma-dev && \
|
9 |
+
apt-get clean && \
|
10 |
+
rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
# Install juliaup:
|
13 |
RUN curl -fsSL https://install.julialang.org | sh -s -- -y
|
14 |
|
|
|
|
|
|
|
|
|
15 |
# Install pyenv:
|
16 |
RUN curl -fsSL curl https://pyenv.run | sh && \
|
17 |
echo 'export PATH="/root/.pyenv/bin:$PATH"' >> ~/.bashrc && \
|
|
|
26 |
RUN pyenv install 3.9.2 && pyenv global 3.9.2
|
27 |
RUN python3 -m pip install --upgrade pip
|
28 |
|
29 |
+
# Get PySR source:
|
30 |
WORKDIR /pysr
|
31 |
ADD ./requirements.txt /pysr/requirements.txt
|
32 |
RUN python3 -m pip install -r /pysr/requirements.txt
|
33 |
|
34 |
ADD ./setup.py /pysr/setup.py
|
35 |
ADD ./pysr/ /pysr/pysr/
|
|
|
36 |
|
37 |
+
# First install of PySR:
|
38 |
+
RUN python3 -m pip install .
|
39 |
RUN python3 -m pysr install
|
40 |
|
41 |
# Change Python version:
|
42 |
RUN pyenv install 3.10 && pyenv global 3.10 && pyenv uninstall -f 3.9.2
|
43 |
RUN python3 -m pip install --upgrade pip
|
44 |
|
45 |
+
# Second install of PySR:
|
46 |
RUN python3 -m pip install .
|
47 |
RUN rm -r ~/.julia/environments/pysr-0.14.2
|
48 |
RUN python3 -m pysr install
|