Building a python package rpm. Python path problems

Hi all,

I’m trying to build Archipel Agent and I keep running into the same issue.


You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from.  The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/src/packages/BUILDROOT/ArchipelAgent-3.2-125.1.i386/usr/lib/python/site-packages/lib/python2.7/site-packages/

Here’s the spec file

It keeps on appending /lib/python2.7/site-packages/ to the prefix path. The spec file is a bit messy but that can be cleaned up after I get passed this issue. Could someone point out where I’m going wrong please? Thanks

 fintan