[sage-devel] Re: I need a bit of python help

2009-06-28 Thread Tim Lahey
On Jun 28, 2009, at 6:54 PM, Dr. David Kirkby wrote: > > Thank you. A couple of hours ago I ordered 'Core PYTHON Programming' > by > Wesley Chun > > http://www.amazon.co.uk/exec/obidos/ASIN/0132269937/ref=ox_ya_os_product > > which appeared to get very good reviews, but is a few years old. > >

[sage-devel] Re: I need a bit of python help

2009-06-28 Thread William Stein
On Mon, Jun 29, 2009 at 12:54 AM, Dr. David Kirkby wrote: > > William Stein wrote: >> 2009/6/28 Dr. David Kirkby : >>> Arnaud Bergeron wrote: >>> Then change the function to this: def sonameprefix(env):      if env['PLATFORM']=="darwin":          return "-Wl,-dylib_install

[sage-devel] Re: I need a bit of python help

2009-06-28 Thread Dr. David Kirkby
William Stein wrote: > 2009/6/28 Dr. David Kirkby : >> Arnaud Bergeron wrote: >> >>> Then change the function to this: >>> >>> def sonameprefix(env): >>> if env['PLATFORM']=="darwin": >>> return "-Wl,-dylib_install_name -Wl," >>> elif env['PLATFORM']==: >>> if 'GNU' in

[sage-devel] Re: I need a bit of python help

2009-06-28 Thread William Stein
2009/6/28 Dr. David Kirkby : > > Arnaud Bergeron wrote: > >> Then change the function to this: >> >> def sonameprefix(env): >>      if env['PLATFORM']=="darwin": >>          return "-Wl,-dylib_install_name -Wl," >>      elif env['PLATFORM']==: >>          if 'GNU' in os.system('ld --version'): >>

[sage-devel] Re: I need a bit of python help

2009-06-28 Thread Dr. David Kirkby
Arnaud Bergeron wrote: > Then change the function to this: > > def sonameprefix(env): > if env['PLATFORM']=="darwin": > return "-Wl,-dylib_install_name -Wl," > elif env['PLATFORM']==: > if 'GNU' in os.system('ld --version'): > return > else: >

[sage-devel] Re: I need a bit of python help

2009-06-27 Thread Arnaud Bergeron
2009/6/27 Dr. David Kirkby : > > John H Palmieri wrote: >> >> >> On Jun 27, 6:50 pm, "Dr. David Kirkby" >> wrote: #!/usr/bin/bash if [ `uname` = "SunOS" -a "`ld  --version  2>&1  | grep GNU`" = "" ]; then    echo "Solaris system. The linker is NOT the GNU linker"    echo "The

[sage-devel] Re: I need a bit of python help

2009-06-27 Thread Dr. David Kirkby
John H Palmieri wrote: > > > On Jun 27, 6:50 pm, "Dr. David Kirkby" > wrote: >>> #!/usr/bin/bash >>> if [ `uname` = "SunOS" -a "`ld --version 2>&1 | grep GNU`" = "" ]; then >>>echo "Solaris system. The linker is NOT the GNU linker" >>>echo "The correct compiler flags are '-Wl,-h,'" >

[sage-devel] Re: I need a bit of python help

2009-06-27 Thread John H Palmieri
On Jun 27, 6:50 pm, "Dr. David Kirkby" wrote: > > #!/usr/bin/bash > > if [ `uname` = "SunOS" -a "`ld  --version  2>&1  | grep GNU`" = "" ]; then > >    echo "Solaris system. The linker is NOT the GNU linker" > >    echo "The correct compiler flags are '-Wl,-h,'" > > elif  [ `uname` = "darwin" ]

[sage-devel] Re: I need a bit of python help

2009-06-27 Thread Dr. David Kirkby
> #!/usr/bin/bash > if [ `uname` = "SunOS" -a "`ld --version 2>&1 | grep GNU`" = "" ]; then >echo "Solaris system. The linker is NOT the GNU linker" >echo "The correct compiler flags are '-Wl,-h,'" > elif [ `uname` = "darwin" ]; then >echo "OS X" >echo "Correct compiler flags