Re: z3c.form missing *.mo files?

Marius Gedminas <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <20110712162659.GB15131@platonas>
On Tue, Jul 12, 2011 at 07:19:07PM +0300, Marius Gedminas wrote:
> And then what?  Surely just having python-gettext installed and a couple
> of environment variables defined is not enough to magically produce .mo
> files -- I would also need to run some Python script somewhere,
> presumably.  Is it z3c.form's bin/pocompile?

So I tried

  cd ~/src/z3c.form
  bin/pocompile
  python setup.py sdist

and found that my dist/z3c.form-2.4.5dev.tar.gz now contains a .mo next
to each .po in src/z3c/form/locales/.

So, should I release z3c.form 2.4.5 with the .mo's?

I would also like to add a RELEASING.txt with something like this

    If you're making a public z3c.form release to the Python Package
    Index, don't forget to generate .mo files with::

      bin/pocompile

    before you do the usual ``python setup.py sdist register upload``
    step.

Ideally, I'd like ``python setup.py sdist`` itself to check for up-to-date
.mo's and either regenerate them automatically, or at least complain
loudly.

Awaiting feedback,
Marius Gedminas
-- 
http://pov.lt/ -- Zope 3/BlueBream consulting and development

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk4cddMACgkQkVdEXeem14+1nQCfeDzG05nad3SoHApnfGiuZlUr
J44AoIWFuN27zSmCEtecTINARrpiIYdu
=8BU4
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.