Skip to main content

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


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.11.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

setuptools_gettext-0.1.11-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

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

Hashes for setuptools-gettext-0.1.11.tar.gz
Algorithm Hash digest
SHA256 d36c294f58c743179cacec35bae8fe88dbf16b4dc9c40be0d327f82430b04663
MD5 cb1db5422f0ab07afa90a9f2b3be6194
BLAKE2b-256 a3cafa289aeaa2360b050de808a7c7308e0f0825fd97a314fbc73c9dc88708ec

See more details on using hashes here.

File details

Details for the file setuptools_gettext-0.1.11-py3-none-any.whl.

File metadata

File hashes

Hashes for setuptools_gettext-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 8c3e40cfc8c11ee4dab85434de5774bab742add7275fbde8a679795301662cd3
MD5 1540d26ac4e8d53377ed290f98195ae2
BLAKE2b-256 cfd8b04a547ad66ee17ff6342e176ad0064a3d230e2480c95e445ea20d16557c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page