diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/setuptools_build_meta.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/setuptools_build_meta.bbclass b/meta/classes/setuptools_build_meta.bbclass index 18ae2e6004..787fbd5f36 100644 --- a/meta/classes/setuptools_build_meta.bbclass +++ b/meta/classes/setuptools_build_meta.bbclass | |||
@@ -2,12 +2,16 @@ inherit pip_install_wheel setuptools3-base | |||
2 | 2 | ||
3 | DEPENDS += "python3-setuptools-native python3-wheel-native" | 3 | DEPENDS += "python3-setuptools-native python3-wheel-native" |
4 | 4 | ||
5 | # Where to execute the build process from | ||
6 | PEP517_SOURCE_PATH ?= "${S}" | ||
7 | |||
5 | setuptools_build_meta_do_configure () { | 8 | setuptools_build_meta_do_configure () { |
6 | : | 9 | : |
7 | } | 10 | } |
8 | 11 | ||
9 | # TODO: ideally this uses pypa/build | 12 | # TODO: ideally this uses pypa/build |
10 | setuptools_build_meta_do_compile () { | 13 | setuptools_build_meta_do_compile () { |
14 | cd ${PEP517_SOURCE_PATH} | ||
11 | nativepython3 -c "from setuptools import build_meta; build_meta.build_wheel('${PIP_INSTALL_DIST_PATH}')" | 15 | nativepython3 -c "from setuptools import build_meta; build_meta.build_wheel('${PIP_INSTALL_DIST_PATH}')" |
12 | } | 16 | } |
13 | do_compile[cleandirs] += "${PIP_INSTALL_DIST_PATH}" | 17 | do_compile[cleandirs] += "${PIP_INSTALL_DIST_PATH}" |