Skip to content

Commit edff7ae

Browse files
committed
matplotlib: replace 'python -m pip' with 'uv pip'
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
1 parent f6b759e commit edff7ae

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/build-matplotlib.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
https://github.com/qhull/qhull/raw/2020.2/COPYING.txt
5151
5252
- name: Install dependencies
53-
run: python -m pip install build twine
53+
run: uv pip install build twine
5454

5555
- name: Build sdist
5656
id: sdist

.github/workflows/test-matplotlib.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,24 +136,24 @@ jobs:
136136
run: |
137137
# Upgrade pip and setuptools and wheel to get as clean an install as
138138
# possible.
139-
python -m pip install --upgrade pip setuptools wheel
139+
uv pip install --upgrade pip setuptools wheel
140140
141141
# Install dependencies from PyPI.
142142
# Preinstall build requirements to enable no-build-isolation builds.
143-
python -m pip install --upgrade --prefer-binary \
143+
uv pip install --upgrade --prefer-binary \
144144
--group build --group test
145145
146146
# Install optional dependencies from PyPI.
147147
# Sphinx is needed to run sphinxext tests
148-
python -m pip install --upgrade sphinx!=6.1.2
148+
uv pip install --upgrade sphinx!=6.1.2
149149
150150
# GUI toolkits are pip-installable only for some versions of Python
151151
# so don't fail if we can't install them. Make it easier to check
152152
# whether the install was successful by trying to import the toolkit
153153
# (sometimes, the install appears to be successful but shared
154154
# libraries cannot be loaded at runtime, so an actual import is a
155155
# better check).
156-
python -m pip install --upgrade pycairo 'cairocffi>=0.8' 'PyGObject' &&
156+
uv pip install --upgrade pycairo 'cairocffi>=0.8' 'PyGObject' &&
157157
(
158158
python -c 'import gi; gi.require_version("Gtk", "4.0"); from gi.repository import Gtk' &&
159159
echo 'PyGObject 4 is available' || echo 'PyGObject 4 is not available'
@@ -179,7 +179,7 @@ jobs:
179179
180180
export CPPFLAGS='--coverage -fprofile-abs-path'
181181
182-
python -m pip install --no-deps --no-build-isolation --verbose \
182+
uv pip install --no-deps --no-build-isolation --verbose \
183183
--config-settings=setup-args="-DrcParams-backend=Agg" \
184184
--editable .[dev]
185185

0 commit comments

Comments
 (0)