Python.build 514 Bytes
Newer Older
gsell's avatar
gsell committed
1 2
#!/bin/bash

3
source "$(dirname $0)/../../lib/libem.bash"
gsell's avatar
gsell committed
4 5

function em.configure() {
6
	"${MODULE_SRCDIR}"/configure \
gsell's avatar
gsell committed
7 8 9 10
		--prefix="${PREFIX}" \
		|| exit 1
}

11 12 13 14 15 16
function em.post_install() {
	ln -fs "${PREFIX}/bin/python${V%%.*}" "${PREFIX}/bin/python"
	ln -fs "${PREFIX}/include/python${V%.*}m" "${PREFIX}/include/python"
	ln -fs "${PREFIX}/include/python${V%.*}m" "${PREFIX}/include/python${V%.*}"
}

17 18 19
em.add_to_family 'Programming'
em.set_runtime_dependencies ""
em.set_build_dependencies   "${COMPILER}"
gsell's avatar
gsell committed
20 21
em.make_all