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 details)
Built Distribution
File details
Details for the file setuptools_gettext-0.1.14.tar.gz
.
File metadata
- Download URL: setuptools_gettext-0.1.14.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43f099eff31a4712cdfbcbb07e0264b0546ed3ebfd7ea998189326c519390d2c |
|
MD5 | 23e89f308afd2535ba2f2f76d87293a9 |
|
BLAKE2b-256 | d54803e7d2e550fd0fcb47864b78e40ef789860e8d75452fd2c1cef2578cb15c |
File details
Details for the file setuptools_gettext-0.1.14-py3-none-any.whl
.
File metadata
- Download URL: setuptools_gettext-0.1.14-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae1073d1ff7566489ef760ad0a762db71dda5b6a7c9cf4fb12580c7b1d41da30 |
|
MD5 | 636334ffa2a4a8beee10a40244b3b71f |
|
BLAKE2b-256 | 262871f8b5a7bc6a6a338643ae4d390e6b390e6fe73cee587a6771962f84760a |