summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/gobject-introspection.bbclass5
-rw-r--r--meta/classes/python3native.bbclass8
-rw-r--r--meta/classes/pythonnative.bbclass8
3 files changed, 16 insertions, 5 deletions
diff --git a/meta/classes/gobject-introspection.bbclass b/meta/classes/gobject-introspection.bbclass
index 8cd7b7ed50..37389cbc8b 100644
--- a/meta/classes/gobject-introspection.bbclass
+++ b/meta/classes/gobject-introspection.bbclass
@@ -24,11 +24,6 @@ DEPENDS_append_class-target = " gobject-introspection gobject-introspection-nati
24DEPENDS_append_class-native = " gobject-introspection-native" 24DEPENDS_append_class-native = " gobject-introspection-native"
25DEPENDS_append_class-nativesdk = " gobject-introspection-native" 25DEPENDS_append_class-nativesdk = " gobject-introspection-native"
26 26
27# This is necessary for python scripts to succeed - distutils fails if these
28# are not set
29export STAGING_INCDIR
30export STAGING_LIBDIR
31
32# This is used by introspection tools to find .gir includes 27# This is used by introspection tools to find .gir includes
33export XDG_DATA_DIRS = "${STAGING_DATADIR}" 28export XDG_DATA_DIRS = "${STAGING_DATADIR}"
34 29
diff --git a/meta/classes/python3native.bbclass b/meta/classes/python3native.bbclass
index 18998636b4..d7b2d357e9 100644
--- a/meta/classes/python3native.bbclass
+++ b/meta/classes/python3native.bbclass
@@ -3,3 +3,11 @@ inherit python3-dir
3PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}" 3PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}"
4EXTRANATIVEPATH += "${PYTHON_PN}-native" 4EXTRANATIVEPATH += "${PYTHON_PN}-native"
5DEPENDS += " ${PYTHON_PN}-native " 5DEPENDS += " ${PYTHON_PN}-native "
6
7# python-config and other scripts are using distutils modules
8# which we patch to access these variables
9export STAGING_INCDIR
10export STAGING_LIBDIR
11
12# autoconf macros will use their internal default preference otherwise
13export PYTHON
diff --git a/meta/classes/pythonnative.bbclass b/meta/classes/pythonnative.bbclass
index 97029dc525..bd239fa792 100644
--- a/meta/classes/pythonnative.bbclass
+++ b/meta/classes/pythonnative.bbclass
@@ -6,3 +6,11 @@ PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}"
6PYTHON_EXECUTABLE="${PYTHON}" 6PYTHON_EXECUTABLE="${PYTHON}"
7EXTRANATIVEPATH += "${PYTHON_PN}-native" 7EXTRANATIVEPATH += "${PYTHON_PN}-native"
8DEPENDS += " ${PYTHON_PN}-native " 8DEPENDS += " ${PYTHON_PN}-native "
9
10# python-config and other scripts are using distutils modules
11# which we patch to access these variables
12export STAGING_INCDIR
13export STAGING_LIBDIR
14
15# autoconf macros will use their internal default preference otherwise
16export PYTHON