Comment 2 for bug 1152913

Revision history for this message
Bernhard Reiter (ockham-razor) wrote : Re: [Bug 1152913] [NEW] build_i18n doesn't work on Windows

Am Samstag, den 09.03.2013, 17:13 +0000 schrieb Sebastian Heinlein:
> Unfortunately distutils.spawn.find_executables() requires the .exe file
> extension on Windows.

I'm not so sure about that as I think I successfully tried
distutils.util.spawn(["perl","C:/path-to-intltool/intltool-update"])
(being under Linux right now, too).

> So if you rename intltool-update to intltool-update.exe it should work -
> just by looking at the code since I don't have got a Windows system at
> my handy.

I was thinking about changing that line into something like above, as it
should also work under Linux with perl being called explicitly. The
remaining question then is how to specify the path to intltool-update in
a cross-compatible fashion. (Note that I was wrong about its location
being on my windows path. Conversely, C:/Program
Files/Python27/Lib/site-packages/gtk-2.0 is on my *Python* path, with
intltool in its runtime/bin/ subfolder.)