[Python-Dev] python/dist/src setup.py,1.52,1.53

Martin von Loewis loewis@informatik.hu-berlin.de
Wed, 5 Sep 2001 10:49:54 +0200 (MEST)


> Does distutils have a way to grep a .h file for a certain string?  I'm
> sure that we could come up with a suitable string to check for (a
> function or macro defined in recent curses versions but not in old
> curses versions); but I'd hate to have to write the test by hand.

Even if it works, we may find that this approach causes the module not
to be build on systems which would support it. The problem is that
curses.h may include other header files which contain the definition
we are looking for. The only real test is the one that autoconf uses,
i.e. AC_TRY_COMPILE. Supporting that in distutils is probably
something that needs careful planning.

Regards,
Martin