psycopg2 setup.py will compile mx.DateTime adapter if it finds mx header files when building it (so it will depends on mx.DateTime even if -mxdatetime is specified, given mx.DateTime is installed) a proposed patch is add a "else clause" to the following if: if use mxdatetime; then sed -i 's/\(use_pydatetime=\)1/\10/' setup.cfg || die "sed failed" fi to something like this: if use mxdatetime; then sed -i 's/\(use_pydatetime=\)1/\10/' setup.cfg || die "sed failed" else sed -i 's/#mx_include_dir=/mx_include_dir=\/not_exit/' setup.cfg || die "disable mxdatetime failed" fi the only way to disable it (when mx.DateTime header is present) is to assign a non-exist path to mx_include_dir in setup.cfg if this is not fixed, psycopg2 won't be usable after unmerge egenix-mx-base even if -mxdatetime is specified on psycopg2
What version are you using? Looking at setup.py in 2.2.2, it has this: if not use_pydatetime and os.path.exists(mxincludedir): use_mx_stuff() ..which should imply that having use_pydatetime set to 1 wouldn't build mx stuff.
dev-python/psycopg-2.0.14 so it seems they changed that in 2.2
So this problem doesn't occur in 2.2.2?
it looks like only 2.0.14 is affected by this bug