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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file setuptools-gettext-0.1.11.tar.gz.
File metadata
- Download URL: setuptools-gettext-0.1.11.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d36c294f58c743179cacec35bae8fe88dbf16b4dc9c40be0d327f82430b04663
|
|
| MD5 |
cb1db5422f0ab07afa90a9f2b3be6194
|
|
| BLAKE2b-256 |
a3cafa289aeaa2360b050de808a7c7308e0f0825fd97a314fbc73c9dc88708ec
|
File details
Details for the file setuptools_gettext-0.1.11-py3-none-any.whl.
File metadata
- Download URL: setuptools_gettext-0.1.11-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 |
8c3e40cfc8c11ee4dab85434de5774bab742add7275fbde8a679795301662cd3
|
|
| MD5 |
1540d26ac4e8d53377ed290f98195ae2
|
|
| BLAKE2b-256 |
cfd8b04a547ad66ee17ff6342e176ad0064a3d230e2480c95e445ea20d16557c
|