ci: Update instructions to use pipx

This commit is contained in:
Rylie Pavlik 2024-03-21 10:43:34 -05:00 committed by Simon Zeni
parent 0e892cc04d
commit 2124180db5
2 changed files with 6 additions and 4 deletions

View file

@ -1,7 +1,7 @@
# CI and Generated Stuff Readme # CI and Generated Stuff Readme
<!-- <!--
# Copyright 2018-2023 Collabora, Ltd. and the Monado contributors # Copyright 2018-2024, Collabora, Ltd. and the Monado contributors
# #
# SPDX-License-Identifier: CC0-1.0 # SPDX-License-Identifier: CC0-1.0
--> -->
@ -16,7 +16,7 @@ You can install it with:
<!-- do not break the following line, it is used in CI setup too, to make sure it works --> <!-- do not break the following line, it is used in CI setup too, to make sure it works -->
```sh ```sh
python3 -m pip install git+https://gitlab.freedesktop.org/freedesktop/ci-templates@185ede0e9b9b1924b92306ab8b882a6294e92613 pipx install git+https://gitlab.freedesktop.org/freedesktop/ci-templates@185ede0e9b9b1924b92306ab8b882a6294e92613
``` ```
On Windows you will also need to have GNU make and busybox installed, such as with: On Windows you will also need to have GNU make and busybox installed, such as with:

View file

@ -1,11 +1,13 @@
#!/bin/sh #!/bin/sh
# SPDX-License-Identifier: CC0-1.0 # SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: 2018-2022 Collabora, Ltd. and the Monado contributors # SPDX-FileCopyrightText: 2018-2024, Collabora, Ltd. and the Monado contributors
# This runs the command in the README as an extra bit of continuous integration. # This runs the command in the README as an extra bit of continuous integration.
set -e set -e
( (
cd "$(dirname "$0")" cd "$(dirname "$0")"
sh -c "$(grep '^python3 -m pip' README.md)" # Getting the path set up right for pipx in CI is a hassle.
# This script is usage on the CI itself only!
sh -c "$(grep '^pipx' README.md | sed 's/pipx install/python3 -m pip install --break-system-packages/' )"
) )