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

Uploaded Source

Built Distribution

setuptools_gettext-0.1.9-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file setuptools-gettext-0.1.9.tar.gz.

File metadata

  • Download URL: setuptools-gettext-0.1.9.tar.gz
  • Upload date:
  • Size: 14.5 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.9.tar.gz
Algorithm Hash digest
SHA256 6c1241a0c970e9952b8273f891e35021bdb39813344cba599cdf148b75796b76
MD5 8d2797cab205d4d4bb1ec814f499ba7c
BLAKE2b-256 94a01f3de2b200f395c32cfa54339cb91c29e111c0e6877b8408a8fdb3dc9aee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for setuptools_gettext-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e1dd20194f2be665a3dba30fe1e84ee2d0957d346a59ff1c0e3a4e92662a333c
MD5 8f30df20d18d93bf48d3a650c8652d0d
BLAKE2b-256 44759309cd0dbd423ca76173feae6730824c1854250adea648d72149e30e4ff9

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