Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#77925 - [python-pydantic] doesn't require cython

Attached to Project: Community Packages
Opened by GalaxySnail (GalaxySnail) - Monday, 20 March 2023, 22:50 GMT
Last edited by David Runge (dvzrv) - Tuesday, 21 March 2023, 10:52 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Filipe LaĆ­ns (FFY00)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

pydantic is compiled with cython since #71724 [1] and 1.9.1-2 [2], however cython should be a make-dependency instead of a runtime dependency.

[1] https://bugs.archlinux.org/task/71724
[2] https://github.com/archlinux/svntogit-community/commit/c49dfb08bc91f81a51e69271dacf6d9e525bd06a
This task depends upon

Closed by  David Runge (dvzrv)
Tuesday, 21 March 2023, 10:52 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Cython is required during runtime for version information.
Comment by David Runge (dvzrv) - Tuesday, 21 March 2023, 10:52 GMT
Cython is required during runtime for the version information [1].
If cython is not installed, this will lead to wrong data. I have no idea whether this is used by anything, but given the brittle construct that the Python ecosystem is, I don't feel like gambling.

If you think this should be changed, please contact upstream about this and suggest a fix, that doesn't involve importing cython.
Alternatively, just wait for the next major version of pydantic, which (AFAIK) will be a rewrite in Rust and not require cython.

[1] https://github.com/pydantic/pydantic/blob/e12352c8208348ccdfd090b047b62b06641efd64/pydantic/version.py#L5-L13

Loading...