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.14.tar.gz
(16.2 kB
view hashes)
Built Distribution
Close
Hashes for setuptools_gettext-0.1.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43f099eff31a4712cdfbcbb07e0264b0546ed3ebfd7ea998189326c519390d2c |
|
MD5 | 23e89f308afd2535ba2f2f76d87293a9 |
|
BLAKE2b-256 | d54803e7d2e550fd0fcb47864b78e40ef789860e8d75452fd2c1cef2578cb15c |
Close
Hashes for setuptools_gettext-0.1.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae1073d1ff7566489ef760ad0a762db71dda5b6a7c9cf4fb12580c7b1d41da30 |
|
MD5 | 636334ffa2a4a8beee10a40244b3b71f |
|
BLAKE2b-256 | 262871f8b5a7bc6a6a338643ae4d390e6b390e6fe73cee587a6771962f84760a |