Skip to content

Commit 6de01db

Browse files
committed
switch env_image.sh to uv
1 parent 0184bd4 commit 6de01db

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.circleci/env_image.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,23 @@ set -e
44
sudo apt-get install fonts-liberation2 fonts-open-sans fonts-noto-cjk fonts-noto-color-emoji
55

66
# install pip
7-
sudo curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
8-
sudo python3 get-pip.py
7+
curl -LsSf https://astral.sh/uv/install.sh | sh
8+
uv venv
9+
source .venv/bin/activate
910

1011
# install additional fonts
11-
sudo python3 -m pip install requests
12-
sudo python3 .circleci/download_google_fonts.py
12+
uv pip install requests
13+
python .circleci/download_google_fonts.py
1314
sudo cp -r .circleci/fonts/ /usr/share/
1415
sudo apt install fontconfig
1516
sudo fc-cache -f
1617

1718
# install kaleido & plotly
18-
sudo python3 -m pip install "plotly==6.5" "kaleido==1.2" --progress-bar off
19+
uv pip install "plotly==6.5" "kaleido==1.2" --no-progress
1920

2021
# install numpy i.e. to convert arrays to typed arrays
21-
sudo python3 -m pip install "numpy==2.3" --progress-bar off
22+
uv pip install "numpy==2.3" --no-progress
2223

23-
# verify versions of installed python packages
24-
sudo python3 -m pip freeze
24+
# verify version of python and versions of installed python packages
25+
python --version
26+
uv pip freeze

0 commit comments

Comments
 (0)