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

Add hooks for tzdata and zoneinfo/backports.zoneinfo #339

Merged
merged 2 commits into from
Oct 26, 2021

Conversation

rokm
Copy link
Member

@rokm rokm commented Oct 26, 2021

No description provided.

@rokm rokm requested review from a team and Legorooj and removed request for a team October 26, 2021 22:00
@rokm
Copy link
Member Author

rokm commented Oct 26, 2021

Oneshot runs for backports.zoneinfo on python < 3.9 and for zoneinfo on python 3.9.

Collects timezone data files as well as submodules that are required
for proper timezone data discovery via importlib.resources.

Add a test that simulates the data loading as performed by zoneinfo
and backports.zoneinfo.
On Windows, these packages use timezone data from the tzdata
package. Due to lack of direct import (the data is loaded using
importlib.resources), we need to add a hiddenimport. On other OSes,
system-wide timezone data is used by default.
@rokm rokm merged commit 2954d97 into pyinstaller:master Oct 26, 2021
@rokm rokm deleted the hooks-tzdata-and-zoneinfo branch October 26, 2021 22:32
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 this pull request may close these issues.

None yet

2 participants