Selon "Beck, Andrew Thomas - BECAT001" <[EMAIL PROTECTED]>:

> 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


_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to