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

Commit

Permalink
Preinstall cython to avoid pyyaml installation errors (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Nov 6, 2023
1 parent 5b9469a commit 3579a7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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

0 comments on commit 3579a7a

Please sign in to comment.