Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
3fea07f
1
Parent(s):
c04aabc
Add dockerfile for debugging pycall
Browse files- pycall_debug.dockerfile +41 -0
pycall_debug.dockerfile
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM debian:bullseye-slim
|
2 |
+
|
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 && \
|
18 |
+
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc && \
|
19 |
+
echo 'eval "$(pyenv init -)"' >> ~/.bashrc && \
|
20 |
+
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
|
21 |
+
|
22 |
+
# Default to using bash -l:
|
23 |
+
SHELL ["/bin/bash", "-l", "-c"]
|
24 |
+
|
25 |
+
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 |
+
# Try to install pysr:
|
30 |
+
RUN python3 -m pip install pysr==0.14.2
|
31 |
+
RUN python3 -m pysr install
|
32 |
+
|
33 |
+
# Change Python version:
|
34 |
+
RUN pyenv install 3.10 && pyenv global 3.10 && pyenv uninstall -f 3.9.2
|
35 |
+
RUN python3 -m pip install --upgrade pip
|
36 |
+
|
37 |
+
# Try to use PySR:
|
38 |
+
RUN python3 -m pip install pysr==0.14.2
|
39 |
+
RUN rm -r ~/.julia/environments/pysr-0.14.2
|
40 |
+
# RUN julia -e 'using Pkg; Pkg.add("PyCall"); Pkg.build("PyCall")'
|
41 |
+
# RUN python3 -m pysr install
|