summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_compile.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_compile.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_compile.sh')
-rw-r--r--scripts/lib/ptxd_make_world_compile.sh31
1 files changed, 23 insertions, 8 deletions
diff --git a/scripts/lib/ptxd_make_world_compile.sh b/scripts/lib/ptxd_make_world_compile.sh
index c859f1099..5e115bdbc 100644
--- a/scripts/lib/ptxd_make_world_compile.sh
+++ b/scripts/lib/ptxd_make_world_compile.sh
@@ -17,13 +17,28 @@ ptxd_make_world_compile() {
# no build dir -> assume the package has nothing to build.
return
fi &&
-
- ptxd_eval \
- "${pkg_path}" \
- "${pkg_env}" \
- "${pkg_make_env}" \
- "${MAKE}" -C "${pkg_build_dir}" \
- "${pkg_make_opt}" \
- "${pkg_make_par}"
+ case "${pkg_conf_tool}" in
+ python*)
+ (
+ ptxd_eval \
+ cd "${pkg_build_dir}" '&&' \
+ "${pkg_path}" \
+ "${pkg_env}" \
+ "${pkg_make_env}" \
+ "${ptx_build_python}" \
+ setup.py \
+ "${pkg_make_opt}"
+ )
+ ;;
+ *)
+ ptxd_eval \
+ "${pkg_path}" \
+ "${pkg_env}" \
+ "${pkg_make_env}" \
+ "${MAKE}" -C "${pkg_build_dir}" \
+ "${pkg_make_opt}" \
+ "${pkg_make_par}"
+ ;;
+ esac
}
export -f ptxd_make_world_compile