[Distutils] [buildout] how do I force an egg to rebuild?

Chris Withers chris at simplistix.co.uk
Mon Feb 16 15:06:29 CET 2009


Andreas Jung wrote:
>>     import psycopg2 as psycopg
>>   File "build/bdist.linux-i686/egg/psycopg2/__init__.py", line 60, in
>> <module>
>>   File "build/bdist.linux-i686/egg/psycopg2/_psycopg.py", line 7, in
>> <module>
>>   File "build/bdist.linux-i686/egg/psycopg2/_psycopg.py", line 6, in
>> __bootstrap__
>> ImportError: libpq.so.4: cannot open shared object file: No such file or
>> directory
>>
>>
>> How do I tell buildout to recompile this egg?
> 
> By removing the old one first and reinstalling it?

How do I do that? I'd guess at:

rm -rf /home/chris/buildout-eggs/psycopg2-2.0.8-py2.*

...but then the buildout's .installed.cfg won't know about that and so 
won't try to install anything.

Is there a "proper" way to do this, as the above all seems very hackish 
and unreliable...

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Distutils-SIG mailing list