summaryrefslogtreecommitdiffstats
path: root/external/meta-iot-cloud/recipes-aws/python/python3-awscli_1.16.278.bb
blob: b394261449d4407f816ff027197e05f62773fcda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
inherit setuptools3 update-alternatives
require python-awscli.inc

RDEPENDS_${PN} += "\
    ${PYTHON_PN}-asyncio \
    ${PYTHON_PN}-logging \
    ${PYTHON_PN}-threading \
"

do_install_append() {
    sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' ${D}${bindir}/aws
}

ALTERNATIVE_${PN} = "\
    aws \
    aws_completer \
"

ALTERNATIVE_LINK_NAME[aws] = "${bindir}/aws"
ALTERNATIVE_LINK_NAME[aws_completer] = "${bindir}/aws_completer"

ALTERNATIVE_PRIORITY = "30"