Skip to content

Commit

Permalink
Install Python 3.10 in context of build
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-klein committed Oct 28, 2023
1 parent 2ab40e5 commit 8f7a31a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 0 additions & 7 deletions docker/Debian12_Bookworm_Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ RUN apt-get install -y libssl-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev

# Install pyenv
RUN curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash

# Install Python 3.10.0
RUN /root/.pyenv/bin/pyenv install 3.10.0
RUN /root/.pyenv/bin/pyenv global 3.10.0

RUN curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
RUN apt-get update
RUN apt-get install -y nodejs npm
Expand Down
5 changes: 3 additions & 2 deletions docker/build_debian12_bookworm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

# Use Python 3.10.0, because with 3.11 there are issues with node-gyp
# See https://stackoverflow.com/questions/74715990/node-gyp-err-invalid-mode-ru-while-trying-to-load-binding-gyp
export PATH=$PATH:/root/.pyenv/bin
pyenv versions
curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash
export PATH=$PATH:$HOME/.pyenv/bin
pyenv install 3.10.0
pyenv global 3.10.0

npm run build-linux
Expand Down

0 comments on commit 8f7a31a

Please sign in to comment.