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.8.tar.gz
(15.5 kB
view hashes)
Built Distribution
Close
Hashes for setuptools_gettext-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8eb7bcff440d83fe75b15c35d57171e5167dd4063a9bd35b8bd893ef82a4c35 |
|
MD5 | 1b3556194f48dd5d3bf94225b8d426d8 |
|
BLAKE2b-256 | b68c9d4c9f10057f3908de066437f4937929f6458940a161d60b3d59e24feb0a |