mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-15 17:55:15 -10:00
While nothing explicitly prompted updating this, letting `pip` and `pip-tools` diverage too greatly in version release dates seems like a bad idea, especially with the various deprecations in `pip` and `python3.12`. This also vendors the implicit dependencies `build`, `tomli`, and `pyproject_hooks`. Differential Revision: https://phabricator.services.mozilla.com/D210526
14 lines
398 B
Python
14 lines
398 B
Python
from __future__ import annotations
|
|
|
|
import locale
|
|
|
|
from click import secho
|
|
|
|
# Needed for locale.getpreferredencoding(False) to work
|
|
# in pip._internal.utils.encoding.auto_decode
|
|
try:
|
|
locale.setlocale(locale.LC_ALL, "")
|
|
except locale.Error as e: # pragma: no cover
|
|
# setlocale can apparently crash if locale are uninitialized
|
|
secho(f"Ignoring error when setting locale: {e}", fg="red")
|