summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/classes/obmc-phosphor-python-autotools.bbclass
blob: d69eb345e3c9fb3447c1a4166c4367e209be1551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
inherit obmc-phosphor-utils
inherit pythonnative

DEPENDS += "python"

export BUILD_SYS
export HOST_SYS
export STAGING_INCDIR
export STAGING_LIBDIR

PYTHON_AUTOTOOLS_PACKAGE ?= "${PN}"

python() {
    for pkg in listvar_to_list(d, 'PYTHON_AUTOTOOLS_PACKAGE'):
        set_append(d, 'FILES_%s' % pkg,
                   d.getVar('PYTHON_SITEPACKAGES_DIR', True))
}
OpenPOWER on IntegriCloud