discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Discuss-gnuradio] latest version of gr_python.m4


From: Stephane Fillod
Subject: RE: [Discuss-gnuradio] latest version of gr_python.m4
Date: Fri, 29 Jul 2005 22:27:42 +0200
User-agent: Internet Messaging Program (IMP) 3.2.5

Selon "Beck, Andrew Thomas - BECAT001" <address@hidden>:

> I modified gr_python.m4 as follows so it now works under
> cygwin & mingw
>
>         python_cmd='
> import distutils.sysconfig
> import os
> path = distutils.sysconfig.get_config_var("LIBPL")
> if path == None:
>     path = distutils.sysconfig.PREFIX + "/libs"
> if os.sep == "\\":
>   path = path.replace("\\", "/")
> print path
> '

Great job Anrew. I don't know how I got it working one week ago,
maybe with an extended PATH pointing to the .dll file. Anyway,
your solution of pointing to the import library is much cleaner.

Eric, can you commit that new version into gr_python.m4 ?
We tested it with Martin, and it also works fine for us
under MinGW and Cygwin. That should not break other systems
because that python script is only run for *mingw*|*cygwin* hosts.
Oh yes, the new gr_python.m4 file will need to be copied over
all the other gr modules..


Cheers
--
Stephane




reply via email to

[Prev in Thread] Current Thread [Next in Thread]