Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cibuildwheel cannot parse podman version on almalinux 8 #2020

Closed
lidavidm opened this issue Sep 26, 2024 · 0 comments · Fixed by #2016
Closed

cibuildwheel cannot parse podman version on almalinux 8 #2020

lidavidm opened this issue Sep 26, 2024 · 0 comments · Fixed by #2016

Comments

@lidavidm
Copy link

Description

A docker/podman version check was added in 0787a44. However, AlmaLinux 8 appears to modify Podman's version string such that it can't be parsed as a Python package version string. (Also, there's no docker; it's aliased to podman.) This is from a local Docker container (docker run --rm --privileged --security-opt apparmor=unconfined --security-opt seccomp=unconfined -it almalinux:8 /bin/bash):

[root@6fd7daaf73f7 /]# podman version
Client:       Podman Engine
Version:      4.9.4-rhel
API Version:  4.9.4-rhel
Go Version:   go1.21.13 (Red Hat 1.21.13-2.module_el8.10.0+3895+92d465e0)
Built:        Tue Sep 24 09:07:12 2024
OS/Arch:      linux/amd64
[root@6fd7daaf73f7 /]# python3.12
Python 3.12.5 (main, Sep 23 2024, 23:12:47) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from packaging.version import Version
>>> Version('4.9.4-rhel')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.12/site-packages/packaging/version.py", line 202, in __init__
    raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: '4.9.4-rhel'

Maybe we can preprocess this? Or have a way to force skip this check?

Build log

No response

CI config

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant