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.10.tar.gz
(15.2 kB
view details)
Built Distribution
File details
Details for the file setuptools-gettext-0.1.10.tar.gz
.
File metadata
- Download URL: setuptools-gettext-0.1.10.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbcb93ad0d31b38fe38d3a5954caf852c4b648d22290fef5886c51c3fc1be7e7 |
|
MD5 | a13cb50a09a18b59e733bbb7cc62a00e |
|
BLAKE2b-256 | f0631ea299c3f09129c8ddea2eb6a121069bd6c9addf1a21aca990f91c33918c |
File details
Details for the file setuptools_gettext-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: setuptools_gettext-0.1.10-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 523a9d4021cd48aa3a210f303b70fa1d73aa4b273ef8cae684a8ce942c9857d7 |
|
MD5 | 0ced701bd5ffb435ae7842eb0725853b |
|
BLAKE2b-256 | a8794e34189a0fd6f810e02081172f0f493f4e4881b95928d097511fd0adacba |