× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: python support in CVS.
  • From: "Jason M. Felice" <jfelice@xxxxxxxxxxxx>
  • Date: Mon, 27 Nov 2000 11:53:52 -0500
  • User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.14-5.0 i686; en-US; m18) Gecko/20001126

Carey Evans wrote:

> I've tried out the Python support, and I've found some problems with
> the configure.in code.  Some of this might be because my /bin/sh is
> ash, not bash.
> 
> When running configure, I get the following output:
> 
> checking for python... /usr/bin/python
> checking for python prefix... Traceback (innermost last):
>   File "<stdin>", line 3, in ?
> NameError: EOF
> /usr
> checking for python version... Traceback (innermost last):
>   File "<stdin>", line 3, in ?
> NameError: EOF
> 1.5
> 
> Part of the problem is that the <<EOF isn't being recognised by the
> shell.  There's also that standard error should be getting redirected
> to config.log.
> 
> Instead of the quite complicated code to work out the Python version,
> I'd suggest:
> 
>   PYTHON_VERSION="`$PYTHON -c 'import sys; print sys.version[[:3]]' 2>&5`"
> 
> with similar code for PYTHON_PREFIX.
> 
> Looking at the configure.in, I also wonder why the glib.m4 code that
> comes with glib isn't being used to set CFLAGS and LIBS, making it a
> lot simpler.  This patch makes both these changes.

There was a historic problem with the GLIB macro, and I just got in the 
habit of doing it manually a long time back <g>  I even forgot what the 
problem was.

I'm not sure why the <<EOF thing didn't work under ash, but I like yours 
better anyway.  I can't imagine using ash as a default shell (*shudder* 
I can barely stand using it on rescue disks), but if you must <g>  My 
experience has been that ksh is the default shell on most systems (AIX, 
sco?, and something else which I can't remember), bsh on others, bash on 
Solaris and Linux.  I've never used *BSD, but I assumed it was bash 
there as well.

Patch applied to CVS.

+---
| This is the LINUX5250 Mailing List!
| To submit a new message, send your mail to LINUX5250@midrange.com.
| To subscribe to this list send email to LINUX5250-SUB@midrange.com.
| To unsubscribe from this list send email to LINUX5250-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.