Skip to content

Commit

Permalink
Workaround python-leveldb issues
Browse files Browse the repository at this point in the history
I am using my own ruineka/py-leveldb repo with a fix since the official repo has not been updated in many years and Python 12 removed a function it uses. This is intended to be a temporary solution until the chimerapp switches to a new library.
  • Loading branch information
ruineka committed Apr 28, 2024
1 parent 3f76496 commit 5912404
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Expand Up @@ -18,6 +18,7 @@ RUN echo -e "keyserver-options auto-key-retrieve" >> /etc/pacman.d/gnupg/gpg.con
python-installer \
python-hatchling \
python-markdown-it-py \
python-nose \
python-setuptools \
python-wheel \
sudo \
Expand All @@ -27,7 +28,10 @@ RUN echo -e "keyserver-options auto-key-retrieve" >> /etc/pacman.d/gnupg/gpg.con
useradd build -G wheel -m && \
su - build -c "git clone https://aur.archlinux.org/pikaur.git /tmp/pikaur" && \
su - build -c "cd /tmp/pikaur && makepkg -f" && \
pacman --noconfirm -U /tmp/pikaur/pikaur-*.pkg.tar.zst
su - build -c "git clone -b patch-1 https://github.com/ruineka/py-leveldb.git /tmp/py-leveldb" && \
su - build -c "cd /tmp/py-leveldb && makepkg -f" && \
pacman --noconfirm -U /tmp/pikaur/pikaur-*.pkg.tar.zst && \
pacman --noconfirm -U /tmp/py-leveldb/python-leveldb*.pkg.tar.zst

# Auto add PGP keys for users
RUN mkdir -p /etc/gnupg/ && echo -e "keyserver-options auto-key-retrieve" >> /etc/gnupg/gpg.conf
Expand Down

0 comments on commit 5912404

Please sign in to comment.