[olso][pbr][i18n] Using setup.cfg [files] data_files to install localization files

Herve Beraud hberaud at redhat.com
Tue Nov 26 15:18:34 UTC 2019


Hello,

Good question, I think that both solutions can do the job, and it depends
on your needs.

If you choose the second option I think you also need to edit the
`MANIFEST.in` to recursively grab your files in your package, then that
will look like something like:
```
# MANIFEST.in
recursive-include translations/ *
```
```
# setup.cfg
[files]
packages =
    yourproject
data_files =
   etc/yourproject/translation = translations/*
```

Where do you want to use this? I mean, do you have a specific project
behind this question?

Le lun. 25 nov. 2019 à 16:18, info at dantalion.nl <info at dantalion.nl> a
écrit :

> Hello everyone :),
>
> I was wondering what the preferred method to install localization files
> is. I can think of some probably solutions such as:
>
> 1: Including the locale files as part of a package for the target
> systems package manager (pacman, yum, apt, etc).
> 2: adding the locale files to the [files] directive in setup.cfg:
>
> I hope someone can answer my question.
>
> Kind regards,
> Corne Lukken
>
>

-- 
Hervé Beraud
Senior Software Engineer
Red Hat - Openstack Oslo
irc: hberaud
-----BEGIN PGP SIGNATURE-----

wsFcBAABCAAQBQJb4AwCCRAHwXRBNkGNegAALSkQAHrotwCiL3VMwDR0vcja10Q+
Kf31yCutl5bAlS7tOKpPQ9XN4oC0ZSThyNNFVrg8ail0SczHXsC4rOrsPblgGRN+
RQLoCm2eO1AkB0ubCYLaq0XqSaO+Uk81QxAPkyPCEGT6SRxXr2lhADK0T86kBnMP
F8RvGolu3EFjlqCVgeOZaR51PqwUlEhZXZuuNKrWZXg/oRiY4811GmnvzmUhgK5G
5+f8mUg74hfjDbR2VhjTeaLKp0PhskjOIKY3vqHXofLuaqFDD+WrAy/NgDGvN22g
glGfj472T3xyHnUzM8ILgAGSghfzZF5Skj2qEeci9cB6K3Hm3osj+PbvfsXE/7Kw
m/xtm+FjnaywZEv54uCmVIzQsRIm1qJscu20Qw6Q0UiPpDFqD7O6tWSRKdX11UTZ
hwVQTMh9AKQDBEh2W9nnFi9kzSSNu4OQ1dRMcYHWfd9BEkccezxHwUM4Xyov5Fe0
qnbfzTB1tYkjU78loMWFaLa00ftSxP/DtQ//iYVyfVNfcCwfDszXLOqlkvGmY1/Y
F1ON0ONekDZkGJsDoS6QdiUSn8RZ2mHArGEWMV00EV5DCIbCXRvywXV43ckx8Z+3
B8qUJhBqJ8RS2F+vTs3DTaXqcktgJ4UkhYC2c1gImcPRyGrK9VY0sCT+1iA+wp/O
v6rDpkeNksZ9fFSyoY2o
=ECSj
-----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20191126/8ac1259d/attachment.html>


More information about the openstack-discuss mailing list