Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Preinstall cython to avoid pyyaml installation errors #367

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions _build/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# prepare:
# see: https://github.com/yaml/pyyaml/issues/601
cython>=3.0.5; python_version >= "3.12"
# ordered:
ansible-pylibssh==1.1.0
ansible-runner==2.3.4
ansible-lint[lock]==6.21.1
Expand Down
3 changes: 2 additions & 1 deletion _build/test-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ if [[ -f "/usr/bin/apt-get" ]]; then
INSTALL=0
# qemu-user-static is required by podman on arm64
# python3-dev is needed for headers as some packages might need to compile
DEBS=(curl git python3-pip python3-venv qemu-user-static jq gh)
# cython3 is needed to headers to compile pyyaml 6.0, see https://github.com/yaml/pyyaml/issues/601
DEBS=(curl git python3-pip python3-venv cython3 qemu-user-static jq gh)
for DEB in "${DEBS[@]}"; do
[[ "$(dpkg-query --show --showformat='${db:Status-Status}\n' \
"${DEB}" || true)" != 'installed' ]] && INSTALL=1
Expand Down