--- branches/magellan-next/include/python.sminc 2010/09/14 16:46:32 6654 +++ branches/magellan-next/include/python.sminc 2010/09/23 18:16:10 6882 @@ -27,13 +27,29 @@ python_src_compile() { cd ${SRCDIR} - python setup.py build "$@" || die + + if [[ -e setup.py ]] + then + python setup.py build "$@" || die + elif [[ -e configure ]] + then + mconfigure "$@" || die + mmake || die + else + mmake || die + fi } python_src_install() { cd ${SRCDIR} - python setup.py install --no-compile --root ${BINDIR} "$@" || die + + if [[ -e setup.py ]] + then + python setup.py install --no-compile --root ${BINDIR} "$@" || die + else + mmake DESTDIR=${BINDIR} install || die + fi local i for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \