The result is a new i18ndude 2.1 release that is available as an egg from the CheeseShop. All you need to do, is to run easy_install i18ndude to get the latest version.
But while reading the setuptools documentation I found yet another useful feature which is called automatic script creation. Now I have developed on the MS Windows platform for quite some years and have always hated to have to write wrapper scripts around Python scripts myself in order to make them callable.
Now thanks to setuptools this step is automatically taken care of and an i18ndude.exe is created automatically if you easy_install i18ndude :)
But I was even more adventurous and tried out the integrated distutils support for building nice installers and found that I only had to type in a single command to get a nice Windows installer in addition to the egg build and have them automatically uploaded to the CheeseShop:
python setup.py register bdist_egg bdist_wininst upload -sWhile you have to be on a Windows system to be able to create that installer, this is not harder than doing an tar.gz release.
So make sure to grab the new experimental installer for i18ndude 2.1.1 and report back any issues you find in the bug tracker.
If this turns out to be as easy as it looks like right now, you might find new installers for the various plone.* packages in the future as well. Now a way to register those releases on plone.org from the command line as well would be nice ;)

2 comments:
Hi Hanno,
I might be wrong, but I believe 'bdist_wininst' works on non-Windows systems as well, as long as you have pure python modules. You should double-check that.
http://www.python.org/doc/2.4.3/dist/postinstallation-script.html
"""
If you have a pure module distribution (only containing pure Python modules and packages), the resulting installer will be version independent and have a name like foo-1.0.win32.exe. These installers can even be created on Unix or Mac OS platforms.
"""
There's some information about building extensions with MingW32 too:
http://kampfwurst.net/python-mingw32/
Excellent post! I was in a rush and missed wininst the first time around but after a quick google I read this and had my installer built.
You wouldn't happen to know where the source for cli.exe and gui.exe exist do you?
Thank You,
Joseph Armbruster
Post a Comment