summaryrefslogtreecommitdiffhomepage
path: root/vars/python3_host.vars
blob: 51705fbe2a0c679de093b579f05793fb8da05209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# set -o errexit -o noglob are assumed.
#

pkg_python3_host_configure_pre() {
	ex_rtl_fileop rm "${PKG_SUBDIR}/Modules/zlib";
};

pkg_python3_host_install_make_post() {
	if ex_rtl_fileop test "${PKG_DESTDIR}/bin/python3"; then
		ex_rtl_fileop rm "${PKG_DESTDIR}/bin/python3";
	fi;
	cat > "${PKG_DESTDIR}/bin/python3" <<EOF
#!/bin/sh
env LD_LIBRARY_PATH="${PREFIX}/lib"	\
	"${PREFIX}/bin/python3.5" "\${@}";
EOF
        chmod +x "${PKG_DESTDIR}/bin/python3";
};

# vim:filetype=sh