Setuptools gettext extension plugin
Project description
setuptools plugin for gettext
Compile .po files into .mo files.
This plugin adds build_mo
, clean_mo
and install_mo
subcommands for
setup.py as well as hooking those into standard commands.
Usage
By default, setuptools_gettext compiles and installs mo files when there is a
po
directory present that contains .po
files.
The .mo files are installed adjacent to your package as package data in a subdirectory called locale
.
You can override these settings in pyproject.toml
:
[build-system]
requires = ["setuptools", "setuptools-gettext"]
...
[tool.setuptools-gettext]
# directory in which the .po files can be found
source_dir = "po"
# directory in which the generated .mo files are placed when building
build_dir = "breezy/locale"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
setuptools-gettext-0.1.9.tar.gz
(14.5 kB
view hashes)
Built Distribution
Close
Hashes for setuptools_gettext-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1dd20194f2be665a3dba30fe1e84ee2d0957d346a59ff1c0e3a4e92662a333c |
|
MD5 | 8f30df20d18d93bf48d3a650c8652d0d |
|
BLAKE2b-256 | 44759309cd0dbd423ca76173feae6730824c1854250adea648d72149e30e4ff9 |