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 details)
Built Distribution
File details
Details for the file setuptools-gettext-0.1.8.tar.gz
.
File metadata
- Download URL: setuptools-gettext-0.1.8.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b47ead90d4a4422dc280eebcad45ce3fc8a600b92cef5c498362bf54c99417f3 |
|
MD5 | ecef5a3cc35e1b1ba6f907d20c91ffda |
|
BLAKE2b-256 | 81e3e11522141e7ebca27d0f422ccd05ce29fb36250f44f93b17e4ba1b7022ab |
File details
Details for the file setuptools_gettext-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: setuptools_gettext-0.1.8-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8eb7bcff440d83fe75b15c35d57171e5167dd4063a9bd35b8bd893ef82a4c35 |
|
MD5 | 1b3556194f48dd5d3bf94225b8d426d8 |
|
BLAKE2b-256 | b68c9d4c9f10057f3908de066437f4937929f6458940a161d60b3d59e24feb0a |