mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
libiio: use setuptools functions instead of distutils
Since ca73393a36c4144662ea8570f904154188e9815a in oe-core, setuptools does not inherit from distutils3 anymore. Therefore replace the distutils functions and variables by their setuptools counterparts which are now available. Signed-off-by: Sam Van Den Berge <sam.van.den.berge@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
committed by
Khem Raj
parent
bbd5c7fb13
commit
c1984fc8f9
@@ -14,7 +14,7 @@ UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
|
|||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
DISTUTILS_SETUP_PATH ?= "${B}/bindings/python/"
|
SETUPTOOLS_SETUP_PATH ?= "${B}/bindings/python/"
|
||||||
|
|
||||||
DEPENDS = " \
|
DEPENDS = " \
|
||||||
flex-native bison-native libaio \
|
flex-native bison-native libaio \
|
||||||
@@ -65,14 +65,14 @@ do_configure() {
|
|||||||
|
|
||||||
do_compile() {
|
do_compile() {
|
||||||
if ${@bb.utils.contains('PACKAGECONFIG', 'libiio-python3', 'true', 'false', d)}; then
|
if ${@bb.utils.contains('PACKAGECONFIG', 'libiio-python3', 'true', 'false', d)}; then
|
||||||
distutils3_do_compile
|
setuptools3_do_compile
|
||||||
fi
|
fi
|
||||||
cmake_do_compile
|
cmake_do_compile
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
if ${@bb.utils.contains('PACKAGECONFIG', 'libiio-python3', 'true', 'false', d)}; then
|
if ${@bb.utils.contains('PACKAGECONFIG', 'libiio-python3', 'true', 'false', d)}; then
|
||||||
distutils3_do_install
|
setuptools3_do_install
|
||||||
fi
|
fi
|
||||||
cmake_do_install
|
cmake_do_install
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user