summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_install.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-06-04 21:45:52 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2015-06-09 11:20:35 +0200
commit048b4aefcea1d9f51d5543f13d8dd1e386b8e52c (patch)
treedf84db2469351c59f24d30fec332c12b8d585f83 /scripts/lib/ptxd_make_world_install.sh
parenteed3ed9d9bab6ef81a822708b8e49710efa482f3 (diff)
downloadptxdist-048b4aefcea1d9f51d5543f13d8dd1e386b8e52c.tar.gz
ptxdist-048b4aefcea1d9f51d5543f13d8dd1e386b8e52c.tar.xz
add helper to build python packages
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_install.sh')
-rw-r--r--scripts/lib/ptxd_make_world_install.sh36
1 files changed, 26 insertions, 10 deletions
diff --git a/scripts/lib/ptxd_make_world_install.sh b/scripts/lib/ptxd_make_world_install.sh
index b4f4647f3..9431c160f 100644
--- a/scripts/lib/ptxd_make_world_install.sh
+++ b/scripts/lib/ptxd_make_world_install.sh
@@ -48,16 +48,32 @@ ptxd_make_world_install() {
ptxd_make_world_install_prepare &&
- cmd=( \
- "${pkg_path}" \
- "${pkg_env}" \
- "${pkg_make_env}" \
- "${pkg_install_env}" \
- "${MAKE}" \
- -C "${pkg_build_dir}" \
- "${pkg_install_opt}" \
- -j1 \
- ) &&
+ case "${pkg_conf_tool}" in
+ python*)
+ cmd=( \
+ cd "${pkg_build_dir}" '&&' \
+ "${pkg_path}" \
+ "${pkg_env}" \
+ "${pkg_make_env}" \
+ "${pkg_install_env}" \
+ "${ptx_build_python}" \
+ setup.py \
+ "${pkg_install_opt}" \
+ )
+ ;;
+ *)
+ cmd=( \
+ "${pkg_path}" \
+ "${pkg_env}" \
+ "${pkg_make_env}" \
+ "${pkg_install_env}" \
+ "${MAKE}" \
+ -C "${pkg_build_dir}" \
+ "${pkg_install_opt}" \
+ -j1 \
+ )
+ ;;
+ esac &&
ptxd_verbose "executing:" "${cmd[@]}" &&