Skip to content

Commit cb16f63

Browse files
committed
Build from source to avoid pypi llvm dep issues
1 parent f2975e5 commit cb16f63

2 files changed

Lines changed: 26 additions & 10 deletions

File tree

Dockerfile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ RUN \
4747
openjpeg \
4848
python3 \
4949
sqlite-libs && \
50+
echo "**** install beets ****" && \
51+
echo "**** install pip packages ****" && \
52+
if [ -z ${BEETS_VERSION+x} ]; then \
53+
BEETS_VERSION=$(curl -sL https://pypi.python.org/pypi/beets/json |jq -r '. | .info.version'); \
54+
fi && \
55+
git clone https://github.com/beetbox/beets.git /tmp/beets && \
56+
cd /tmp/beets && \
57+
git checkout -f "v${BEETS_VERSION}" && \
5058
echo "**** compile mp3gain ****" && \
5159
mkdir -p \
5260
/tmp/mp3gain-src && \
@@ -69,16 +77,17 @@ RUN \
6977
make -f Makefile.linux && \
7078
cp -p mp3val /usr/bin && \
7179
echo "**** install pip packages ****" && \
72-
if [ -z ${BEETS_VERSION+x} ]; then \
73-
BEETS_VERSION=$(curl -sL https://pypi.python.org/pypi/beets/json |jq -r '. | .info.version'); \
74-
fi && \
7580
python3 -m venv /lsiopy && \
7681
pip install -U --no-cache-dir \
7782
pip \
83+
setuptools \
7884
wheel && \
85+
echo "**** install beets ****" && \
86+
cd /tmp/beets && \
87+
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.23/ . && \
88+
echo "**** install pip packages ****" && \
7989
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.23/ \
8090
beautifulsoup4 \
81-
beets==${BEETS_VERSION} \
8291
beets-extrafiles \
8392
beetcamp \
8493
python3-discogs-client \

Dockerfile.aarch64

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ RUN \
3131
chromaprint \
3232
expat \
3333
ffmpeg \
34-
ffmpeg-libs \
3534
fftw \
3635
flac \
3736
gdbm \
@@ -48,6 +47,13 @@ RUN \
4847
openjpeg \
4948
python3 \
5049
sqlite-libs && \
50+
echo "**** install beets ****" && \
51+
if [ -z ${BEETS_VERSION+x} ]; then \
52+
BEETS_VERSION=$(curl -sL https://pypi.python.org/pypi/beets/json |jq -r '. | .info.version'); \
53+
fi && \
54+
git clone https://github.com/beetbox/beets.git /tmp/beets && \
55+
cd /tmp/beets && \
56+
git checkout -f "v${BEETS_VERSION}" && \
5157
echo "**** compile mp3gain ****" && \
5258
mkdir -p \
5359
/tmp/mp3gain-src && \
@@ -70,16 +76,17 @@ RUN \
7076
make -f Makefile.linux && \
7177
cp -p mp3val /usr/bin && \
7278
echo "**** install pip packages ****" && \
73-
if [ -z ${BEETS_VERSION+x} ]; then \
74-
BEETS_VERSION=$(curl -sL https://pypi.python.org/pypi/beets/json |jq -r '. | .info.version'); \
75-
fi && \
7679
python3 -m venv /lsiopy && \
7780
pip install -U --no-cache-dir \
7881
pip \
82+
setuptools \
7983
wheel && \
80-
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.21/ \
84+
echo "**** install beets ****" && \
85+
cd /tmp/beets && \
86+
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.23/ . && \
87+
echo "**** install pip packages ****" && \
88+
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.23/ \
8189
beautifulsoup4 \
82-
beets==${BEETS_VERSION} \
8390
beets-extrafiles \
8491
beetcamp \
8592
python3-discogs-client \

0 commit comments

Comments
 (0)