mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
Today, we can use devtool/recipetool to create recipes for python projects using the github url or the direct release tarball of the project, but the create_buildsys_python plugin doesn't support the pypi class, since we cannot know from the extracted source if the package is available on pypi or not. By implementing the new optional process_url callback, we can detect that the url is a pypi one (i.e 'https://pypi.org/project/<package>') and retrieve the release tarball location. Also detect if the url points to a release tarball hosted on "files.pythonhosted.iorg" (i.e https://files.pythonhosted.org/packages/...) In both cases, adds the pypi class, remove 'S' and 'SRC_URIxxx' variables from the created recipe as they will be handled by the pypi class and add the PYPI_PACKAGE variable This helps to produce cleaner recipes when package is hosted on pypi. If the url points to a github url or a release tarball not coming from "files.pythonhosted.org", the created recipe is the same as before. One can also use the newly added "--no-pypi" switch to NOT inherit from pypi class on matching url, to keep legacy behaviour. To create a recipe for a pypi package, one can now use one of the new following syntax (using recipetool create / devtool add): * recipetool create https://pypi.org/project/<package> * recipetool create https://pypi.org/project/<package>/<version> * recipetool create https://pypi.org/project/<package> --version <version> or the old syntax: * recipetool create https://files.pythonhosted.org/packages/<...> (From OE-Core rev: 097a43846cd99a7d74d004efc57f583ce78970a4) Signed-off-by: Julien Stephan <jstephan@baylibre.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
||
|---|---|---|
| .. | ||
| contrib | ||
| cross-intercept | ||
| esdk-tools | ||
| lib | ||
| native-intercept | ||
| nativesdk-intercept | ||
| postinst-intercepts | ||
| pybootchartgui | ||
| tiny | ||
| autobuilder-worker-prereq-tests | ||
| bblock | ||
| bitbake-prserv-tool | ||
| buildall-qemu | ||
| buildhistory-collect-srcrevs | ||
| buildhistory-diff | ||
| buildstats-diff | ||
| buildstats-summary | ||
| combo-layer | ||
| combo-layer-hook-default.sh | ||
| combo-layer.conf.example | ||
| cp-noerror | ||
| create-pull-request | ||
| crosstap | ||
| devtool | ||
| gen-lockedsig-cache | ||
| gen-site-config | ||
| git | ||
| install-buildtools | ||
| multilib_header_wrapper.h | ||
| oe-build-perf-report | ||
| oe-build-perf-test | ||
| oe-buildenv-internal | ||
| oe-check-sstate | ||
| oe-debuginfod | ||
| oe-depends-dot | ||
| oe-find-native-sysroot | ||
| oe-git-archive | ||
| oe-git-proxy | ||
| oe-gnome-terminal-phonehome | ||
| oe-pkgdata-browser | ||
| oe-pkgdata-browser.glade | ||
| oe-pkgdata-util | ||
| oe-publish-sdk | ||
| oe-pylint | ||
| oe-run-native | ||
| oe-selftest | ||
| oe-setup-builddir | ||
| oe-setup-layers | ||
| oe-test | ||
| oe-time-dd-test.sh | ||
| oe-trim-schemas | ||
| oepydevshell-internal.py | ||
| opkg-query-helper.py | ||
| patchtest | ||
| patchtest-get-branch | ||
| patchtest-get-series | ||
| patchtest-send-results | ||
| patchtest-setup-sharedir | ||
| patchtest.README | ||
| pythondeps | ||
| README | ||
| recipetool | ||
| relocate_sdk.py | ||
| resulttool | ||
| rootfs_rpm-extract-postinst.awk | ||
| rpm2cpio.sh | ||
| runqemu | ||
| runqemu-addptable2image | ||
| runqemu-export-rootfs | ||
| runqemu-extract-sdk | ||
| runqemu-gen-tapdevs | ||
| runqemu-ifdown | ||
| runqemu-ifup | ||
| runqemu.README | ||
| send-error-report | ||
| send-pull-request | ||
| sstate-cache-management.sh | ||
| sstate-diff-machines.sh | ||
| sstate-sysroot-cruft.sh | ||
| sysroot-relativelinks.py | ||
| task-time | ||
| test-reexec | ||
| test-remote-image | ||
| verify-bashisms | ||
| wic | ||
| yocto_testresults_query.py | ||
| yocto-check-layer | ||
| yocto-check-layer-wrapper | ||
This directory contains Various useful scripts for working with OE builds