Re: [Numpy-discussion] Replacement for numpy.distutils.config.try_run

2009-01-09 Thread Robert Kern
On Fri, Jan 9, 2009 at 03:27, Stéfan van der Walt wrote: > 2009/1/9 Robert Kern : >> try_run() is not the right thing to call for such a purpose. Use >> FCompiler.get_version(). > > That was just an example. What I want to do is run something like > "pkg-config blah" and parse the output, but I g

Re: [Numpy-discussion] Replacement for numpy.distutils.config.try_run

2009-01-09 Thread Stéfan van der Walt
2009/1/9 Robert Kern : > try_run() is not the right thing to call for such a purpose. Use > FCompiler.get_version(). That was just an example. What I want to do is run something like "pkg-config blah" and parse the output, but I get the idea from David's post that that is OK. Cheers Stéfan _

Re: [Numpy-discussion] Replacement for numpy.distutils.config.try_run

2009-01-09 Thread David Cournapeau
Stéfan van der Walt wrote: > 2009/1/9 David Cournapeau : > >>> What do you suggest as workarounds? >>> >> What about not using tests which need to run on the target platform :) >> > > Let me simplify the question. How do you detect the version of the > local Fortran compiler without

Re: [Numpy-discussion] Replacement for numpy.distutils.config.try_run

2009-01-09 Thread Robert Kern
On Fri, Jan 9, 2009 at 02:31, Stéfan van der Walt wrote: > 2009/1/9 David Cournapeau : >>> What do you suggest as workarounds? >> >> What about not using tests which need to run on the target platform :) > > Let me simplify the question. How do you detect the version of the > local Fortran compil

Re: [Numpy-discussion] Replacement for numpy.distutils.config.try_run

2009-01-09 Thread Stéfan van der Walt
2009/1/9 David Cournapeau : >> What do you suggest as workarounds? > > What about not using tests which need to run on the target platform :) Let me simplify the question. How do you detect the version of the local Fortran compiler without executing the compiler? Or is that OK, and you'd simply

Re: [Numpy-discussion] Replacement for numpy.distutils.config.try_run

2009-01-09 Thread David Cournapeau
Stéfan van der Walt wrote: > 2009/1/9 David Cournapeau : > >> It happened that in that particular case where it is used in numpy, I >> found a way around it, but I would like to get rid of it completely at >> some point. >> > > What do you suggest as workarounds? > > What about not usin

Re: [Numpy-discussion] Replacement for numpy.distutils.config.try_run

2009-01-09 Thread Stéfan van der Walt
2009/1/9 David Cournapeau : > It happened that in that particular case where it is used in numpy, I > found a way around it, but I would like to get rid of it completely at > some point. What do you suggest as workarounds? Stéfan ___ Numpy-discussion ma

Re: [Numpy-discussion] Replacement for numpy.distutils.config.try_run

2009-01-08 Thread David Cournapeau
Stéfan van der Walt wrote: > Hi, > > In distutils/config.py line 32 I see: > > "Usage of try_run is deprecated: please do not \n" \ > "use it anymore, and avoid configuration checks \n" \ > "involving running executable on the target

[Numpy-discussion] Replacement for numpy.distutils.config.try_run

2009-01-08 Thread Stéfan van der Walt
Hi, In distutils/config.py line 32 I see: "Usage of try_run is deprecated: please do not \n" \ "use it anymore, and avoid configuration checks \n" \ "involving running executable on the target machine.\n" \ What is the recommended