mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 03:53:41 +00:00
c358e1ded9
importing click shells out to 'locale', which currently needs to be in PATH. Fix by setting patching locale command at runtime.
12 lines
493 B
Diff
12 lines
493 B
Diff
--- a/click/_unicodefun.py 2018-06-11 15:08:59.369358278 +0200
|
|
+++ b/click/_unicodefun.py 2018-06-11 15:09:09.342325998 +0200
|
|
@@ -60,7 +60,7 @@
|
|
extra = ''
|
|
if os.name == 'posix':
|
|
import subprocess
|
|
- rv = subprocess.Popen(['locale', '-a'], stdout=subprocess.PIPE,
|
|
+ rv = subprocess.Popen(['@locale@', '-a'], stdout=subprocess.PIPE,
|
|
stderr=subprocess.PIPE).communicate()[0]
|
|
good_locales = set()
|
|
has_c_utf8 = False
|