[Bug 1904439] [NEW] python3.9+ should be compiled with --with-tzpath option
Paul G
1904439 at bugs.launchpad.net
Mon Nov 16 17:11:05 UTC 2020
Public bug reported:
PEP 615 added a compile-time option for specifying the location of time
zone data, with a primary use case being that it would allow distros to
specify where the system-deployed zoneinfo files are.
See https://www.python.org/dev/peps/pep-0615/#compile-time-options and
https://docs.python.org/3/library/zoneinfo.html#zoneinfo-data-compile-
time-config
Since debian's tzdata is always deployed to /usr/share/zoneinfo, it
would be a good idea to compile with --with-tzpath=/usr/share/zoneinfo,
so that the default zoneinfo.TZPATH (i.e. the value when the time zone
search path is not modified by an environment variable or
zoneinfo.reset_tzpath) is ('/usr/share/zoneinfo',) rather than:
('/usr/share/zoneinfo',
'/usr/lib/zoneinfo',
'/usr/share/lib/zoneinfo',
'/etc/zoneinfo')
This will mostly make failed lookups faster, and possibly avoid some
bugs that would be hit by users who have some old non-system time zones
distributed to one of the other locations.
** Affects: python3.9 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.9 in Ubuntu.
https://bugs.launchpad.net/bugs/1904439
Title:
python3.9+ should be compiled with --with-tzpath option
Status in python3.9 package in Ubuntu:
New
Bug description:
PEP 615 added a compile-time option for specifying the location of
time zone data, with a primary use case being that it would allow
distros to specify where the system-deployed zoneinfo files are.
See https://www.python.org/dev/peps/pep-0615/#compile-time-options and
https://docs.python.org/3/library/zoneinfo.html#zoneinfo-data-compile-
time-config
Since debian's tzdata is always deployed to /usr/share/zoneinfo, it
would be a good idea to compile with --with-
tzpath=/usr/share/zoneinfo, so that the default zoneinfo.TZPATH (i.e.
the value when the time zone search path is not modified by an
environment variable or zoneinfo.reset_tzpath) is
('/usr/share/zoneinfo',) rather than:
('/usr/share/zoneinfo',
'/usr/lib/zoneinfo',
'/usr/share/lib/zoneinfo',
'/etc/zoneinfo')
This will mostly make failed lookups faster, and possibly avoid some
bugs that would be hit by users who have some old non-system time
zones distributed to one of the other locations.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.9/+bug/1904439/+subscriptions
More information about the foundations-bugs
mailing list