diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3-wheel_0.37.1.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-wheel_0.37.1.bb | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/meta/recipes-devtools/python/python3-wheel_0.37.1.bb b/meta/recipes-devtools/python/python3-wheel_0.37.1.bb index a339e65824..efd6c2f968 100644 --- a/meta/recipes-devtools/python/python3-wheel_0.37.1.bb +++ b/meta/recipes-devtools/python/python3-wheel_0.37.1.bb | |||
| @@ -10,26 +10,8 @@ inherit flit_core pypi | |||
| 10 | 10 | ||
| 11 | SRC_URI += " file://0001-Backport-pyproject.toml-from-flit-backend-branch.patch" | 11 | SRC_URI += " file://0001-Backport-pyproject.toml-from-flit-backend-branch.patch" |
| 12 | 12 | ||
| 13 | DEPENDS:remove:class-native = "python3-pip-native" | ||
| 14 | |||
| 15 | do_install:class-native () { | ||
| 16 | python_pep517_do_bootstrap_install | ||
| 17 | |||
| 18 | # pip install would normally generate [project.scripts] in ${bindir} | ||
| 19 | install -d ${D}/${bindir} | ||
| 20 | cat << EOF >> ${D}/${bindir}/wheel | ||
| 21 | #!/bin/sh | ||
| 22 | '''exec' ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} "\$0" "\$@" | ||
| 23 | ' ''' | ||
| 24 | # -*- coding: utf-8 -*- | ||
| 25 | import re | ||
| 26 | import sys | ||
| 27 | from wheel.cli import main | ||
| 28 | if __name__ == '__main__': | ||
| 29 | sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) | ||
| 30 | sys.exit(main()) | ||
| 31 | EOF | ||
| 32 | chmod 0755 ${D}${bindir}/wheel | ||
| 33 | } | ||
| 34 | |||
| 35 | BBCLASSEXTEND = "native nativesdk" | 13 | BBCLASSEXTEND = "native nativesdk" |
| 14 | |||
| 15 | # This used to use the bootstrap install which didn't compile. Until we bump the | ||
| 16 | # tmpdir version we can't compile the native otherwise the sysroot unpack fails | ||
| 17 | INSTALL_WHEEL_COMPILE_BYTECODE:class-native = "--no-compile-bytecode" | ||
