Issue 43 ( http://bugs.python.org/setuptools/issue43 ) contains a patch that is needed to build dev-python/pylucene-jcc libraries properly (as shared libraries instead of static libraries)
With this patch setuptools will function as normal (building static libraries) unless the force_shared flag is deliberately flipped, as is done in pylucene-jcc's setup.py, in which case the libraries are built as shared libraries.
Upstream python has yet to comment on this issue at the time of filing this bug.
Created attachment 182548 [details, diff]
setuptools-0.6_rc9 to setuptools-0.6_rc9-r1 diff including the sharedlib patch
Here's the diff to update the rc9 ebuild to use the new sharedlib patch. It compiles and runs fine for me (x86 I have not tested other arches).
Created attachment 182549 [details, diff]
patches the setuptools source to include the force_shared flag
This is files/setuptools-0.6_rc9-sharedlib.patch mentioned in issue 43 which creates the force_shared flag, so that packages can compile as shared libraries if they wish.
Can you reproduce this bug with dev-python/setuptools-0.6.1?
Reopen this bug after providing required informations.