[Patches] [ python-Patches-588564 ] _locale library patch

noreply@sourceforge.net noreply@sourceforge.net
Mon, 12 Aug 2002 04:53:45 -0700


Patches item #588564, was opened at 2002-07-30 05:58
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=588564&group_id=5470

Category: Distutils and setup.py
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jason Tishler (jlt63)
Assigned to: Jason Tishler (jlt63)
Summary: _locale library patch

Initial Comment:
This patch enables setup.py to find gettext routines
when they are located in libintl instead of libc.
Although I developed this patch for Cygwin, I hope
that it can be easily updated to support other
platforms (if necessary). I tested this patch
under Cygwin and Red Hat Linux 7.1.

----------------------------------------------------------------------

>Comment By: Jason Tishler (jlt63)
Date: 2002-08-12 03:53

Message:
Logged In: YES 
user_id=86216

I'm a strong proponent of doing the right thing.
The unfortunate reality is that I'm way
overcommitted right now. Hence, I don't have the
spare cycles to figure out the best way to
accomplish this "major undertaking" (to quote
you). Additionally, one of the distutils
developers could do a better job with much less
effort than I could.

Please reconsider my original patch. I'm willing
to change it (in the future) to be more
autoconf-like if someone else is willing to do the
underlying work.


----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-08-09 15:49

Message:
Logged In: YES 
user_id=21627

Yes, that's what I meant. It eventually results in distutils
getting some of the capabilities of autoconf.

I agree this is a major undertaking, but one that I think
needs to progress over time, in small steps.

For the current problem, it might be useful to emulate
AC_TRY_LINK: generate a small program, and see whether the
compiler manages to link it.

You probably need to allow for result-caching as well; I
recommend to put the cache file into build/temp.<system>.

This may all sound very ad-hoc, but I think it can be made
to work with reasonable effort. We probably need to present
any results to distutils-sig before committing them.

----------------------------------------------------------------------

Comment By: Jason Tishler (jlt63)
Date: 2002-08-09 10:04

Message:
Logged In: YES 
user_id=86216

I presume that you mean to use an
autoconf-style approach *in* setup.py.
Is this assumption correct?

If so, then I know how to search for
libintl.h via find_file(). Unfortunately,
I do not know how to check that a
function (e.g., getext()) is in a library
(i.e., libc.a). Any suggestions?

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-08-04 00:37

Message:
Logged In: YES 
user_id=21627

I would really prefer if such problems where solved in an
autoconf-style approach: 
- is libintl.h present (you may ask pyconfig.h for that)
  - if so, is gettext provided by the C library
  - if not, is it provided by -lintl
     - if yes, add -lintl
     - if no, print an error message and continue

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=588564&group_id=5470