--- toast 2008/05/07 05:21:00 1.457 +++ toast 2008/05/08 23:20:31 1.458 @@ -3481,6 +3481,23 @@ return $dir; } + # Construct a Makefile to invoke setup.py on behalf of various Python source + # packages (e.g. BitTorrent, Cython): + if(-r(path($dir, "setup.py"))) + { + $dir = path($dir, "setup.py.toast.d"); + md($dir); + writefile + ( + path($dir, "Makefile"), + "# $genby\n\n", + "all:\n\tcd .. && python setup.py build\n\n", + "install:\n\tcd .. && python setup.py install " . + "--prefix=\Q$prefix\E --root=\$(DESTDIR)\n", + ); + return $dir; + } + for(qw[build_unix build.unix]) # e.g. Sleepycat DB and nvi, respectively { my($bubuilddir) = path($dir, $_); @@ -3635,21 +3652,6 @@ "# $genby\n\nall:\n\ttrue\n\ninstall:\n\t@cmd\n"); return $dir; } - } - - # Construct a Makefile to invoke setup.py on behalf of certain Python source - # packages (notably BitTorrent): - if(-r(path($dir, "setup.py"))) - { - writefile - ( - path($dir, "Makefile"), - "# $genby\n\n", - "all:\n\tpython setup.py build\n\n", - "install:\n\tpython setup.py install " . - "--prefix=\Q$prefix\E --root=\$(DESTDIR)\n", - ); - return $dir; } # SCons replaces make entirely; wrap it in a Makefile (e.g. klick)