Web lists-archives.com

[Mingw-msys] Maintnance script


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

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

$ echo $?

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

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 >="')
   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 >="
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.
Mingw-msys mailing list