FS#68642 - [python] Python 3.9+ should have a dependency on tzdata
Attached to Project:
Arch Linux
Opened by Paul Ganssle (pganssle) - Monday, 16 November 2020, 14:52 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 06 August 2023, 11:00 GMT
Opened by Paul Ganssle (pganssle) - Monday, 16 November 2020, 14:52 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 06 August 2023, 11:00 GMT
|
Details
Description:
PEP 615 recommends that distros should add a dependency on `tzdata` when distributing Python, to ensure that the zoneinfo module works out of the box: > Python distributors are encouraged to ensure that time zone data is installed > alongside Python whenever possible (e.g. by declaring tzdata as a dependency > for the python package). Quote from: https://www.python.org/dev/peps/pep-0615/#system-time-zone-information From what I can tell, the current Python 3.9 package does not include this dependency. |
This task depends upon
Closed by Jelle van der Waa (jelly)
Sunday, 06 August 2023, 11:00 GMT
Reason for closing: Implemented
Additional comments about closing: Fixed in git.
Sunday, 06 August 2023, 11:00 GMT
Reason for closing: Implemented
Additional comments about closing: Fixed in git.
I also think it's useful to explicitly call out dependencies for the purposes of tracing what packages may be directly affected by a problem with their dependencies. For this reason, I'd probably also recommend a tzdata dependency on anything that uses Python and needs to work with time zone data.
Finally, I think it would be useful just so that people in the future can look at the Python package's direct dependencies and know that `zoneinfo` will always work right out of the box without having to know that tzdata is a dependency of one of Python's dependencies (and thus they won't open bug reports like this).
I agree that this will likely have no concrete impact on Python users for the foreseeable future (which likely includes the lifetime of the Python 3.9 package), it just seems better to have slightly more accurate dependency metadata. If none of these is compelling, or if Arch's packaging policies have already ruled against this, no problem. Just wanted to make sure y'all are aware that our recommended dependency set for Python has changed. ☺
That being said, having a base system libc isn't something that will ever go away. :p