Re: Patch for locale placement
Ian Bicking <[email protected]> Tue, 30 Sep 2008 12:38:03 -0500
| Newsgroups | gmane.comp.python.formencode |
|---|---|
| Message-ID | <[email protected]> |
Toshio Kuratomi wrote: > Hello all, > > I'm working on the formencode package for Fedora and noticed the i18n > directory with the locales wasn't being placed in the system catalog. > There's two parts to making that work: > > 1) Be able to find the locales whether they live in the egg or in the > system catalog. OK, patch applied. > 2) Have the package install the files in the right place depending on > whether an egg is being built or the files are being placed on the > system in expanded form. > > setuptools makes #2 hard to accomplish so I haven't even attempted it > for this pass. I've struggled with setuptools where I am upstream and > don't have any solution that seems clean to me yet. If I get something > working in the future, I'll send another patch to do so. This is tricky. I'm not sure what a good solution is at all; you might want to ask on the distutils-sig list, as they might have suggestions. While it's appropriate for an RPM to install files in /usr/share/locale, I don't think it's a good idea to put that in FormEncode's setup.py directly (unless maybe it's enabled by some explicit option). -- Ian Bicking : [email protected] : http://blog.ianbicking.org ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/