Skip to main content

Setuptools compile po

Compile .po files to .mo files.

Usage

Set in pyproject.toml:

[build-system]
requires = ["setuptools", "setuptools-compile-po"]
...

This configuration compiles all .po files in the $package/locale folder. Another path to the files is defined by the configuration:

[tool.setuptools_compile_po]
directory = "package/path/locale"

Dependencies

The msgfmt command is used for compilation. It must be installed in the os. For example, with the command apt install gettext. If you need to compile with a different command, you can define it with the msgfmt parameter:

[tool.setuptools_compile_po]
msgfmt = "command"

Metadata

Release files for setuptools-compile-po 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for setuptools-compile-po 1.0.0
File Size Uploaded
setuptools_compile_po-1.0.0.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for setuptools-compile-po 1.0.0
File Interpreter ABI Platform
setuptools_compile_po-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / setuptools_compile_po-1.0.0.tar.gz

Download URL setuptools_compile_po-1.0.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ae63b2b3ec44f87cb6f11ff3f7c6a73c8df70d175fab7ced344b5bd219eb8a60
BLAKE2b-256 checksum
How to use checksums
2ab36e429f807ba5db8ff4f339f2a702865ac90538f19025f48d1782c09be997
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / setuptools_compile_po-1.0.0-py3-none-any.whl

Download URL setuptools_compile_po-1.0.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78a645aeee84681acd7d548faf9fe00eb3e971ce104f23e715168920b9dd621b
BLAKE2b-256 checksum
How to use checksums
7ce64ad66a288a6707a1f4393d0bb24fc1c95d14ab42a3095b79bab13db7611c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page