Skip to content

📦 Build wheels using limited Python API#819

Draft
webknjaz wants to merge 2 commits into
ansible:develfrom
webknjaz:packaging/abi-py-limited-api
Draft

📦 Build wheels using limited Python API#819
webknjaz wants to merge 2 commits into
ansible:develfrom
webknjaz:packaging/abi-py-limited-api

Conversation

@webknjaz

Copy link
Copy Markdown
Member
SUMMARY

SSIA.

ISSUE TYPE
  • Maintenance Pull Request
  • Packaging Pull Request
ADDITIONAL INFORMATION

If this works, it has a potential of allowing us to ship fewer wheels while supporting unreleased/future Pythons.

@webknjaz webknjaz self-assigned this Mar 13, 2026
@webknjaz webknjaz added the 🤖 infra This includes packaging, CI/CD, test runners, dev env. That sort of stuff. label Mar 13, 2026
@webknjaz webknjaz moved this to 🚧 In progress 🚧 in 📅 Procrastinating in public 😵‍💫 Mar 13, 2026
@packit-as-a-service

Copy link
Copy Markdown

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo dnf install -y 'dnf*-command(copr)'
  • dnf copr enable packit/ansible-pylibssh-819
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

@webknjaz

Copy link
Copy Markdown
Member Author

The end of the log caused by this patch:

2026-03-13T15:24:21.7075520Z /tmp/.tmp-ansible-pylibssh-pep517-ur6i_71r/src/src/pylibsshext/session.c:2267:37: error: invalid use of incomplete typedef ‘PyThreadState’ {aka ‘struct _ts’}
2026-03-13T15:24:21.7076949Z  2267 |          (!(check_funcs) || (tstate)->c_profilefunc || (CYTHON_TRACE && (tstate)->c_tracefunc)))
2026-03-13T15:24:21.7077657Z       |                                     ^~
2026-03-13T15:24:21.7078799Z /tmp/.tmp-ansible-pylibssh-pep517-ur6i_71r/src/src/pylibsshext/session.c:15714:12: note: in expansion of macro ‘__Pyx_IsTracing’
2026-03-13T15:24:21.7079795Z 15714 |     return __Pyx_IsTracing(tstate, 0, 0);
2026-03-13T15:24:21.7080235Z       |            ^~~~~~~~~~~~~~~
2026-03-13T15:24:21.7133451Z /tmp/.tmp-ansible-pylibssh-pep517-ur6i_71r/src/src/pylibsshext/session.c:2267:81: error: invalid use of incomplete typedef ‘PyThreadState’ {aka ‘struct _ts’}
2026-03-13T15:24:21.7134842Z  2267 |          (!(check_funcs) || (tstate)->c_profilefunc || (CYTHON_TRACE && (tstate)->c_tracefunc)))
2026-03-13T15:24:21.7135448Z       |                                                                                 ^~
2026-03-13T15:24:21.7136371Z /tmp/.tmp-ansible-pylibssh-pep517-ur6i_71r/src/src/pylibsshext/session.c:15714:12: note: in expansion of macro ‘__Pyx_IsTracing’
2026-03-13T15:24:21.7137023Z 15714 |     return __Pyx_IsTracing(tstate, 0, 0);
2026-03-13T15:24:21.7137316Z       |            ^~~~~~~~~~~~~~~
2026-03-13T15:24:21.7891305Z error: command '/opt/rh/gcc-toolset-14/root/usr/bin/gcc' failed with exit code 1
2026-03-13T15:24:21.9405064Z ERROR Backend subprocess exited when trying to invoke build_wheel
2026-03-13T15:24:21.9405473Z 
2026-03-13T15:24:22.1019779Z ##[endgroup]
2026-03-13T15:24:22.1020550Z                                                              �[31m✕ �[0m19.95s
2026-03-13T15:24:22.1044926Z ##[error]Command ['python', '-m', 'build', PurePosixPath('/project'), '--wheel', '--outdir=/tmp/cibuildwheel/built_wheel', '--config-setting=with-cython-tracing=true'] failed with code 1. 
2026-03-13T15:24:22.1046105Z 
2026-03-13T15:24:22.1251968Z ##[error]Process completed with exit code 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖 infra This includes packaging, CI/CD, test runners, dev env. That sort of stuff.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant