Distutils gcc error

Brian Victor bhv1 at psu.edu
Tue Jul 15 18:48:09 EDT 2003


Following up to myself for googling purposes.

Brian Victor wrote:
> wxlibs = commands.getoutput("wx-config --libs")
> wxcxxflags = commands.getoutput("wx-config --cxxflags")
> 
> bwaaext = Extension("bwaascalec", ["src/bwaa.cc", "src/bwaascale.cc"],
>                     include_dirs=["src"],
>                     extra_link_args=[wxlibs],
>                     extra_compile_args=[wxcxxflags])

The compiler was taking the chunk of arguments returned by wx-config as
one large, nonsensical argument.  This is solved by using:

                    extra_link_args=wxlibs.split(),
                    extra_compile_args=wxcxxflags.split())

-- 
Brian




More information about the Python-list mailing list