Closed yktoo closed 4 years ago
@paravoid I suspect #76 has broken the i18n support, there's no /usr/share/locale/
dir in the .deb anymore. Any idea why?
I'm trying this on my buster system and I cannot reproduce it, even after multiple consecutive clean/builds.
Looking at the code in setup.py, it seems like it does create the "locale" (locale_dir
) directory, as long as os.path.isdir(PO_DIR)
matches, i.e. as long as there is a po/
directory. I'm out of ideas on why that would not be the case here :/
Commit a688553 did it. The build directory is created by the extraction of the .tar file, which does include the locale
directory, but the clean
step removes it. I guess the build system expects a po
directory, so that the files are compiled on build time. That means adding the po
directory to .tar file. Since the build_package
script always generate a fresh tarball, I think this commit could be reverted.
Resolved in v2.3.2.
I'm still not quite sure what caused this but inspecting the source package showed there were no .po
files packaged, which the setup script fairly pointed out. I've sorted that by explicitly including *.po
and excluding *.mo
in MAINFEST.in
.
So no localisation is installed.
From build log: