[Distutils] Re: swig 1.3.x
Keith Jackson
krjackson@lbl.gov
Fri Jan 3 17:31:32 2003
Berthold H=F6llmann wrote:
> "M.-A. Lemburg" <mal@lemburg.com> writes:
>>Keith Jackson wrote:
>>>M.-A. Lemburg wrote:
> There is of course a way to get the swig version:
>=20
> ~/ [1]>/usr/bin/swig -version
>=20
> SWIG Version 1.3.13u-20020910-1829
> Copyright (c) 1995-1998
> University of Utah and the Regents of the University of California
> Copyright (c) 1998-2001
> University of Chicago
>=20
> Compiled with CC
> ~/ [1]>/usr/local/bin/swig -version
>=20
> SWIG Version 1.1 (Build 786)
> Copyright (c) 1995-98
> University of Utah and the Regents of the University of California
What is the right non-platform specific way to execute a command, and=20
get the output back? The distutils spawn command doesn't return the=20
output, and popen doesn't exist on Macs. I don't normally work with=20
Macs, so any suggestions would be appreciated.
> Maybe there should also be a way to select a special swig executable
> like "--swig=3Dswig1.1" to be able to have several swig exectables at
> the same time, and switch to another version if needed. The
> alternative would be to have several "swig"s and to fiddle with the
> PATH, but an option would probably be easier for some OSs.
That sounds like a good idea.
--keith
----------------------------------------------------------------
Keith R. Jackson KRJackson@lbl.gov
Grid Technology Group (510) 486-4401
Lawrence Berkeley National Laboratory http://www-itg.lbl.gov/~kjackson/