diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-01-15 00:07:46 -0500 |
|---|---|---|
| committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-01-15 16:33:09 -0500 |
| commit | 5f20a347450b620f1c582b16aa007f8c2feea13f (patch) | |
| tree | 3d5b616196f81c17700e9f62451781022fc0edec /gnu | |
| parent | c967e2c43147971dcbc8b69870ab5657d5bf0f88 (diff) | |
gnu: python-3.9: Add a search path specification for PYTHONTZPATH.
Python 3.9 implemented PEP 615 (<)https://www.python.org/dev/peps/pep-0615/>),
which relies on either a compiled time default value or the PYTHONTZPATH
environment variable to find the system tzdata database.
* gnu/packages/python.scm (python-3.9)[native-search-paths]: Add a new search
path specification for PYTHONTZPATH.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/python.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 85eb797fd9a..d3df1a4dabe 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm | |||
| @@ -475,7 +475,12 @@ data types.") | |||
| 475 | (variable "PYTHONPATH") | 475 | (variable "PYTHONPATH") |
| 476 | (files (list (string-append "lib/python" | 476 | (files (list (string-append "lib/python" |
| 477 | (version-major+minor version) | 477 | (version-major+minor version) |
| 478 | "/site-packages")))))))) | 478 | "/site-packages")))) |
| 479 | ;; Used to locate tzdata by the zoneinfo module introduced in | ||
| 480 | ;; Python 3.9. | ||
| 481 | (search-path-specification | ||
| 482 | (variable "PYTHONTZPATH") | ||
| 483 | (files (list "share/zoneinfo"))))))) | ||
| 479 | 484 | ||
| 480 | ;; Current 3.x version. | 485 | ;; Current 3.x version. |
| 481 | (define-public python-3 python-3.9) | 486 | (define-public python-3 python-3.9) |
