summaryrefslogtreecommitdiff
path: root/meta/classes/distutils.bbclass
blob: 5f57a9ea199e94d43f7594ff2467e701f439bc2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
inherit distutils-base

distutils_do_compile() {
	BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
	${STAGING_BINDIR_NATIVE}/python setup.py build || \
	oefatal "python setup.py build execution failed."
}

distutils_do_install() {
	BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
	${STAGING_BINDIR_NATIVE}/python setup.py install --prefix=${D}/${prefix} --install-data=${D}/${datadir} || \
	oefatal "python setup.py install execution failed."
}

EXPORT_FUNCTIONS do_compile do_install