Skip to content

Commit 3e78fc1

Browse files
committed
ansible: use cython to fix compile issue on 3.11
fedora 37 uses python 3.11 and pycld (https://pypi.org/project/pycld3/) only provides wheels for 3.6-3.9. When building pycld3, we ran into > fatal error: longintrepr.h: No such file or directory which seems to have been addressed in cython (cython/cython#4428); we need to install some additional packages and USE_CYTHON=1 pip ... in order for the build on the target machine to succeed.
1 parent 9c63bbc commit 3e78fc1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ansible/ansible.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[defaults]
2+
timeout = 60

ansible/roles/siskin/tasks/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@
3838
- podman-tui
3939
- protobuf-compiler
4040
- protobuf-devel
41+
- python3-Cython
4142
- python3-csvkit
4243
- python3-devel
4344
- python3-ipython
4445
- python3-pip
46+
- python3-wheel
4547
- sshuttle
4648
- yaz
4749
- yaz-doc
@@ -87,6 +89,8 @@
8789
pip:
8890
name: siskin=={{ siskin_vendor_version_siskin }}
8991
extra_args: -U -i "{{ siskin_pypi_index_url }}"
92+
environment:
93+
USE_CYTHON: 1
9094
- name: Create configuration directories
9195
file:
9296
path: "{{ item }}"

0 commit comments

Comments
 (0)