Skip to content

Commit 2a87dd2

Browse files
cdeckermadelinevibes
authored andcommitted
ci: Use uv in Fedora build
1 parent 68db706 commit 2a87dd2

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed
Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM fedora:35
22

3+
ENV UV_PYTHON=3.12
34
ENV BITCOIN_VERSION=27.1
5+
46
WORKDIR /tmp
57

68
RUN dnf update -y && \
@@ -10,11 +12,6 @@ RUN dnf update -y && \
1012
dnf install -y \
1113
clang \
1214
libsq3-devel \
13-
python3-devel \
14-
python3-mako \
15-
python3-pip \
16-
python3-virtualenv \
17-
python3-setuptools \
1815
redhat-lsb \
1916
net-tools \
2017
valgrind \
@@ -26,8 +23,6 @@ RUN dnf update -y && \
2623
cargo && \
2724
dnf clean all
2825

29-
RUN python3 -m pip install uv
30-
3126
RUN wget https://bitcoincore.org/bin/bitcoin-core-$BITCOIN_VERSION/bitcoin-$BITCOIN_VERSION-x86_64-linux-gnu.tar.gz -O bitcoin.tar.gz && \
3227
tar -xvzf bitcoin.tar.gz && \
3328
mv bitcoin-$BITCOIN_VERSION/bin/bitcoin* /usr/local/bin/ && \
@@ -36,8 +31,6 @@ RUN wget https://bitcoincore.org/bin/bitcoin-core-$BITCOIN_VERSION/bitcoin-$BITC
3631
mv bitcoin-$BITCOIN_VERSION/share/man/man1/* /usr/share/man/man1 && \
3732
rm -rf bitcoin.tar.gz bitcoin-$BITCOIN_VERSION
3833

39-
ENV PATH=/opt/venv/bin:${PATH}
40-
RUN python3 -m pip install pip wheel && \
41-
python3 -m virtualenv /opt/venv && \
42-
/opt/venv/bin/python3 -m pip install --force-reinstall -U pip poetry wheel
43-
RUN poetry self add poetry-plugin-export
34+
# Ensure `uv` can be found
35+
ENV PATH=${PATH}:/root/.local/bin
36+
RUN wget -qO- https://astral.sh/uv/install.sh | sh

0 commit comments

Comments
 (0)