[Python-modules-team] Bug#923781: Set locale to C for a build

Sergei Golovan sgolovan at gmail.com
Wed Mar 13 12:21:14 GMT 2019


Hi!

Apparently, python-tesserocr tests don't work if the system locale
differs from "C". The simple patch fixes this FTBFS:

------------------------
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,7 @@

 export PYBUILD_NAME=tesserocr
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export LC_ALL=C

 %:
        dh $@ --with python3 --buildsystem=pybuild
------------------------

(I've tried setting LANG, but it wouldn't be sufficient for some reason.)

Cheers!
-- 
Sergei Golovan



More information about the Python-modules-team mailing list