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

[Python] Add a function to download and extract timezone database #37328

Closed
AlenkaF opened this issue Aug 23, 2023 · 0 comments · Fixed by #38179
Closed

[Python] Add a function to download and extract timezone database #37328

AlenkaF opened this issue Aug 23, 2023 · 0 comments · Fixed by #38179

Comments

@AlenkaF
Copy link
Member

AlenkaF commented Aug 23, 2023

Describe the enhancement requested

There is a section in the Arrow C++ documentation with the instructions on how to download and extract text version of the IANA timezone database and on Windows:
https://arrow.apache.org/docs/dev/cpp/build_system.html#runtime-dependencies

  • It would be good to add this information in the PyArow documentation.
  • We should provide a function in PyArrow that a user would call to download and extract the timezone database in order to improve the user experience.

Component(s)

Python

jorisvandenbossche added a commit that referenced this issue Mar 20, 2024
…tabase on Windows (#38179)

### Rationale for this change

There is a section in the [Arrow C++ documentation with the instructions](https://arrow.apache.org/docs/dev/cpp/build_system.html#runtime-dependencies) on how to download and extract text version of the IANA timezone database and on Windows. We should provide a function in PyArrow that a user would call to download and extract the timezone database from Python.

### What changes are included in this PR?

Function `download_tzdata_on_windows()` added to python/pyarrow/util.py that downloads and extracts timezone database to a standard location in `%USERPROFILE%\Downloads\tzdata` on Widnows.

### Are these changes tested?
Yes.

### Are there any user-facing changes?
No.
* Closes: #37328

Lead-authored-by: AlenkaF <[email protected]>
Co-authored-by: Alenka Frim <[email protected]>
Co-authored-by: Joris Van den Bossche <[email protected]>
Signed-off-by: Joris Van den Bossche <[email protected]>
@jorisvandenbossche jorisvandenbossche added this to the 16.0.0 milestone Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants