Web lists-archives.com

[Mingw-msys] Maintnance script




Hey,

I'm trying to use a lib that is a python binding of a lib written in C

It checks the C library (named evas) by using pkg-config

pkg-config works well in MSYS :

$ pkg-config --modversion evas
0.9.9.041

$ pkg-config --libs --cflags evas
-ID:/msys/1.0/local/include  -LD:/msys/1.0/local/lib -levas

$ echo $?
0


I've installed python 2.5.1. The python code that checks evas is the 
following:

def pkgconfig(*packages, **kw):
     flag_map = {'-I': 'include_dirs', '-L': 'library_dirs', '-l': 'libraries'}
     pkgs = ' '.join(packages)
     cmdline = 'pkg-config --libs --cflags %s' % pkgs

     status, output = commands.getstatusoutput(cmdline)
     if status != 0:
         raise ValueError("could not find pkg-config module: %s" % pkgs)

     for token in output.split():
         kw.setdefault(flag_map.get(token[:2]), []).append(token[2:])
     return kw


The error message I get is:

   File "setup.py", line 45, in <module>
     **pkgconfig('"evas >= 0.9.9.040"')
   File "setup.py", line 22, in pkgconfig
     raise ValueError("could not find pkg-config module: %s" % pkgs)
ValueError: could not find pkg-config module: "evas >= 0.9.9.040"
ERROR: failed to build python-evas


I've tried in MSYS with and without rxvt.

Does someone have an idea of the problem ?

thank you

Vincent Torri

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mingw-msys mailing list
Mingw-msys@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/mingw-msys