summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
Commit message (Collapse)AuthorAgeFilesLines
...
* python3-importlib-metadata: upgrade 4.10.1 -> 4.11.2Tim Orling2022-03-051-2/+2
| | | | | | | | | | | | | | | | | | | | | inherit setuptools_build_meta v4.11.2 369: Fixed bug where EntryPoint.extras was returning match objects and not the extras strings. v4.11.1 367: In Distribution.requires for egg-info, if requires.txt is empty, return an empty list. v4.11.0 bpo-46246: Added __slots__ to EntryPoints. v4.10.2 365 and bpo-46546: Avoid leaking method_name in DeprecatedList. (From OE-Core rev: 16873202f4fc9409b3b853ad2275c1068eb16ecd) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: Reduce util-linux dependency to util-linux-libuuidRichard Purdie2022-03-051-1/+1
| | | | | | | | | Only libuuid is needed by python so reduce the dependency and hence reduce the amount pulled into the syroot for the native case in particular. (From OE-Core rev: 35246dec1c9690371ef0656b21f18567772dab2e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* btrfs-tools: upgrade 5.16 -> 5.16.2wangmy2022-03-042-48/+1
| | | | | | | | | | | | | | | | | | | | 0001-btrfs-progs-kerncompat-add-local-definition-for-alig.patch removed since it's included in 5.16.2 Changelog: ========= mkfs: fix detection of profile type for zoned mode when creating DUP build: - add missing stub for zoned mode helper when zoned mode not enabled - fix 64bit types on MIPS and PowerPC - improved zoned mode support autodetection, for systems with existing blkzone.h header but missing support for zone capacity other: doc updates, test updates (From OE-Core rev: ec04580374ed6cc26471a338f84794f41931eca1) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-jsonschema: upgrade 3.2.0 -> 4.4.0Tim Orling2022-03-041-4/+4
| | | | | | | | | | | | | | Upstream changed from setup.py to pyproject.toml+setup.cfg inherit setuptools_build_meta For changes see: https://github.com/Julian/jsonschema/blob/main/CHANGELOG.rst#v440 (From OE-Core rev: 9af4a46668f0e8dcc7a371ec9e14a185df3a314f) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: Drop opt1 and opt2 pyc files from targetRichard Purdie2022-03-041-0/+5
| | | | | | | | | | These are only used with python when the -O or -OO options are passed and I'm not aware of runtime use of that. They otherwise just waste a ton of space. (From OE-Core rev: 5ac7b8c030daf30b2be93abebfedbc36c395e6d7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-native: Remove all pyc filesRichard Purdie2022-03-041-4/+9
| | | | | | | | | | This removes a further 1600 files from sstate handling and lets python create the ones it wants at runtime which is likely much better overall for performance. (From OE-Core rev: 2d6490fa23cce58922a1b54f87c8369925ff8f90) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cmake-native: Remove help docs from the native sysrootRichard Purdie2022-03-041-0/+3
| | | | | | | | | | This drops the file count for cmake-native from ~3000 to ~1700 which is a decent chunk of files not to be copying to each native sysroot for no reason. (From OE-Core rev: 6e561619a2a2b688735deae968eb66027fd4b9f0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-native: Drop opt-1 and opt-2 pyc filesRichard Purdie2022-03-041-0/+5
| | | | | | | | | | | | | There are over 3,000 of these in python3-native (of 8,000+ files total) and copying them to sysroots all the time seems pointless, particularly since they're only used if python is run with the -O or -OO parameters. Get rid of them and save the overhead. This is particularly pronounced in builds using the api-documentation distro feature. (From OE-Core rev: fd66de439273b245c1d0bcfb32f2c847e3cddd6b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* binutils: Avoid Race condition in as.infoPgowda2022-03-042-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | The race condition in binutils/gas folder was introduced with the following patch. The patch avoids recursive make into the doc folder. It would speed up the build process slightly. However, the as.info is installed twice which resulted in the race condition sometimes. https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=bde299e063de090bf36c1fe51874d1e9f4d94c3c On debugging the code, it was found that the issue was related to install-data-local. On further analysis, there is already a patch in binutils that removes install-data-local. On applying the patch as.info is installed once as expected and there’s no possibility of any race condition. https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=9a84a44d5df4618dd616137fa755bd71b7eacc5f Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=9a84a44d5df4618dd616137fa755bd71b7eacc5f] [YOCTO #14725] (From OE-Core rev: c08a245990eb46906476dc0f6ade0482c7be241d) Signed-off-by: pgowda <pgowda.cve@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: Add snapshot checksums for powerpc64leAndrew Jeffery2022-03-021-0/+4
| | | | | | | (From OE-Core rev: ab0c2de443278625c5db54d5c51e193791f5087c) Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: Introduce RUST_BUILD_ARCHAndrew Jeffery2022-03-022-7/+7
| | | | | | | | | | | | | RUST_BUILD_ARCH contains the arch_to_rust_arch()-translated value of BUILD_ARCH. This is necessary to acquire the correct snapshot artifacts under Linux where `uname -m` reports "ppc64le" rather than "powerpc64le". Change-Id: I6aec23aced8e1c6f0bfc46fe52531b0c16bcf687 (From OE-Core rev: c13afbade8d480807b9de70c56dcd650496f06b2) Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: Introduce arch_to_rust_arch()Andrew Jeffery2022-03-021-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On modern Power systems `uname -m` yields 'ppc64le' while the toolchain knows the architecture as 'powerpc64le'. Provide a mapping from one to the other to integrate with the existing architecture configuration flags. arch_to_rust_arch() only exists to map the OE *_ARCH variables before any further processing, unlike arch_to_rust_target_arch() which is specific to the internal triple handling of rust. On Linux ppc64le systems the changes give the following config: ``` $ cat ./tmp/work/ppc64le-linux/rust-native/1.58.0-r0/targets/ppc64le-linux.json { "llvm-target": "powerpc64le-unknown-linux-gnu", "data-layout": "e-m:e-i64:64-n32:64-v256:256:256-v512:512:512", "max-atomic-width": 64, "target-pointer-width": "64", "target-c-int-width": "64", "target-endian": "little", "arch": "powerpc64", "os": "linux", "env": "gnu", "vendor": "unknown", "target-family": "unix", "linker": "gcc", "cpu": "generic", "dynamic-linking": true, "executables": true, "linker-is-gnu": true, "linker-flavor": "gcc", "has-rpath": true, "has-elf-tls": true, "position-independent-executables": true, "panic-strategy": "unwind" } ``` Change-Id: Ief0c01189185d7d4da31d307270bec4e1de674ca (From OE-Core rev: 9ab61e3cfef0157393cb870d606c2f362e190889) Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-flit-core: upgrade 3.6.0 to 3.7.1Tim Orling2022-03-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Version 3.7.1 * Fix building packages which need execution to get the version number, and have a relative import in __init__.py (:ghpull:`531`). Version 3.7 * Support for :ref:`external data files <pyproject_toml_external_data>` such as man pages or Jupyter extension support files (:ghpull:`510`). * Project names are now lowercase in wheel filenames and .dist-info folder names, in line with the specifications (:ghpull:`498`). * Improved support for :doc:`bootstrapping <bootstrap>` a Python environment, e.g. for downstream packagers (:ghpull:`511`). flit_core.wheel is usable with python -m to create wheels before the build tool is available, and flit_core sdists also include a script to install itself from a wheel before installer is available. * Use newer importlib APIs, fixing some deprecation warnings (:ghpull:`499`). (From OE-Core rev: 3f6768cf23e4215d99f7279b8ec6ee73ba00a656) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-tomli: inherit flit_coreTim Orling2022-03-021-8/+1
| | | | | | | | | Drop the setup.py workaround as it is no longer needed. (From OE-Core rev: 88fc6ec6859e5aa1b97125fd7b692569665875f6) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* quilt: Disable external sendmail for deterministic buildRobert Yang2022-03-021-1/+2
| | | | | | | | | | | | | | Otherwise, the build results would be different w/o host's /usr/sbin/sendmail: 1) The /usr/share/quilt/compat/sendmail will be genrated if no /usr/sbin/sendmail on host 2) No /usr/share/quilt/compat/sendmail if host's has /usr/sbin/sendmail Use --without-sendmail to make it always generate /usr/share/quilt/compat/sendmail. (From OE-Core rev: 3f9320816ac9f9ec8815754d1951cecb58612f70) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: Makefile.PL: Fix _PATH_LOG for deterministicRobert Yang2022-03-022-0/+37
| | | | | | | | | | | | | It checks host's path such as /dev/log and uses it, this doesn't make sense for cross build, and it causes undeterministic, for example, the contianer os usually doesn't have /dev/log which leads to a different build result since other host usually has /dev/log, so make it always use the default value to fix the issue. (From OE-Core rev: 977b493e5040db8e000c6565bb29f3ac260ca0e1) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ccache: upgrade 4.5.1 -> 4.6wangmy2022-03-021-2/+2
| | | | | | | | | | | License-Update: year updated to 2022 version of library updated (From OE-Core rev: 973f0b25aa324dbd4642f67952f5531bf68ae9f6) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-hypothesis: upgrade 6.37.2 -> 6.39.0wangmy2022-03-021-1/+1
| | | | | | | | | | | | | | | | | Changelog: ========= This release improves Hypothesis' handling of positional-only arguments, which are now allowed @st.composite strategies. On Python 3.8 and later, the first arguments to builds() and from_model() are now natively positional-only. In cases which were already errors, the TypeError from incorrect usage will therefore be raises immediately when the function is called, rather than when the strategy object is used. (From OE-Core rev: 4278a345300dd9c42fcd28a7f2149e6046b3467e) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-dbusmock: upgrade 0.25.0 -> 0.26.1wangmy2022-03-021-1/+1
| | | | | | | | | | | | | | | Changelog from 0.25.0 to 0.26.1: ========== - logind template: Add locking API - bluez5 template: Add RemoveDevice() and RemoveAdapterWithDevices() methods, fix properties - Documentation improvements, particularly wrt. raising errors - Fix README content type to Markdown, to fix releasing to PyPi (From OE-Core rev: e9ff8a96165ce8901f36da1be1eae4b6bc2c3a3b) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* repo: upgrade 2.21 -> 2.22Changhyeok Bae2022-03-021-1/+1
| | | | | | | (From OE-Core rev: 7a1d98521e4493ed1a5f1163c47227c5e302ff12) Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta, meta-selftest: Replace more non-SPDX license identifiersPeter Kjellerstedt2022-03-014-5/+5
| | | | | | | | | | | | | | | | In commit ceda3238 (meta/meta-selftest/meta-skeleton: Update LICENSE variable to use SPDX license identifiers) all LICENSE variables were updated to only use SPDX license identifiers. This does the same for comments and other variables where it is appropriate to use the official SPDX license identifiers. There are still references to, e.g., "GPLv3", but they are then typically in descriptive text where they refer to the license in a generic sense. (From OE-Core rev: 165759dced7fbe73b1db2ede67047896071dc6d0) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-git: upgrade 3.1.26 -> 3.1.27wangmy2022-02-271-1/+1
| | | | | | | | | | | | | Changelog: ========= -Reduced startup time due to optimized imports. -Fix a vulenerability that could cause great slowdowns when encountering long remote path names when pulling/fetching. (From OE-Core rev: 3cb7f09392f1e43fec1c490cdee8bcdf581b1489) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-markupsafe: upgrade 2.0.1 -> 2.1.0wangmy2022-02-251-1/+1
| | | | | | | | | | | | | | Changelog: ========== Drop support for Python 3.6. :pr:'262' Remove soft_unicode, which was previously deprecated. Use soft_str instead. :pr:'261' Raise error on missing single placeholder during string interpolation. :issue:'225' Disable speedups module for GraalPython. :issue:'277' (From OE-Core rev: b953a11adcc014ee561af844b09e3513d534a4f9) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-hypothesis: upgrade 6.36.2 -> 6.37.2wangmy2022-02-251-1/+1
| | | | | | | | | | | This patch fixes a bug in stateful testing, where returning a single value wrapped in :func:'~hypothesis.stateful.multiple' would be printed such that the assigned variable was a tuple rather than the single element (From OE-Core rev: 451e9c4403ae140edc2df77e22745e029ad1ca63) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-nose: drop recipeTim Orling2022-02-252-20/+0
| | | | | | | | | | | | | | | The code has not been touched since 2016 and numerous files still have Python2 syntax code in them. This causes do_compile errors when packaging a wheel (PEP-517 packaging). Nothing in oe-core depends on python3-nose. [YOCTO #14638] (From OE-Core rev: 19135f8b7cbaabeb2e38572d11e909ce386d60b8) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-packaging: inherit setuptools_build_metaTim Orling2022-02-251-1/+1
| | | | | | | | | | | | Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] (From OE-Core rev: 37e22b4189535f67b5bad0851baabc27532cbada) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-mako: inherit setuptools_build_metaTim Orling2022-02-251-1/+1
| | | | | | | | | | | | Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] (From OE-Core rev: 5d591c6a498f2667f61147f30dc441856567825a) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-dbusmock: set PIP_INSTALL_PACKAGETim Orling2022-02-251-0/+1
| | | | | | | | | | | | The name of the wheel as built by bdist_wheel is "python_dbusmock", set PIP_INSTALL_PACKAGE appropriately. [YOCTO #14638] (From OE-Core rev: e2727e2b42f7f0df3fa06334085479fa9663c452) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-numpy: Fix pyc determinism issueRichard Purdie2022-02-251-0/+9
| | | | | | | | | Using frozenset causes problems for pyc file determinism. For now remove the problematic pyc file as we do in the main python3 recipe. (From OE-Core rev: 9888608f75a97a633bc7d2207ab2defc48c92ac4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-numpy: set PIP_INSTALL_PACKAGETim Orling2022-02-251-0/+1
| | | | | | | | | | | | The recipe does not inherit pypi so we need to manually set PIP_INSTALL_PACKAGE appropriately. [YOCTO #14638] (From OE-Core rev: 6663aaa636f06991ed1cff58178e378eeebadf44) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-magic: set PIP_INSTALL_PACKAGETim Orling2022-02-251-0/+1
| | | | | | | | | | | | The wheel built by bdist_wheel has the name "python_magic-*.whl" so set PIP_INSTALL_PACKAGE accordingly. [YOCTO #14638] (From OE-Core rev: 44263ae8eb56966407cd8ca2c862daab342196f2) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-subunit: merge inc; set PIP_INSTALL_PACKAGETim Orling2022-02-254-17/+45
| | | | | | | | | | | | | | | | | We have not supported python2 for some time now, so there is no reason to maintain a separate python-subunit.inc file. The wheel built by bdist_wheel is named 'python_subunit-*.whl', so set PIP_INSALL_PACKAGE appropriately. Add patch to use vendored _distutils from setuptools. [YOCTO #14638] (From OE-Core rev: 1183357dc9ebff0281c195b41f16fa07c79e84a0) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-scons: merge -native recipeTim Orling2022-02-252-8/+12
| | | | | | | | | | | | | | | | | The native recipe simply calls create_wrapper to add a host script. Do this via do_install:append:class-native() The scons*.1 man pages are being installed in ${prefix}, move them to ${mandir} (previously installed in ${datadir}). [YOCTO #14638] Drop from maintainers.inc (From OE-Core rev: f91009d168bcad5df6b3ca4f5cd4babff5cf682c) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-smartypants: patch hash bang to python3Tim Orling2022-02-252-0/+48
| | | | | | | | | | | | Change hash bang in smartypants and smartypants.py to be /usr/bin/env python3 [YOCTO #14638] (From OE-Core rev: ef8ccaa1dcd396dafb328cd64777d4bd6973e9e1) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-libarchive-c: set PIP_INSTALL_PACKAGETim Orling2022-02-251-0/+2
| | | | | | | | | | | | Set PIP_INSTALL_PACKAGE to libarchive_c to match the name of the wheel built by bdist_wheel. [YOCTO #14638] (From OE-Core rev: e57e83d631fdd021f84cdbc827b2bc595a43b26e) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meson: inherit setuptools_build_metaTim Orling2022-02-251-1/+3
| | | | | | | | | | | | | | | Upstream provides a pyproject.toml which declares setuptools.build_meta to be backend for PEP-517 packaging. Set PIP_INSTALL_PACKAGE as this recipe does not inherit pypi and therefor no PYPI_PACKAGE is defined [YOCTO #14638] (From OE-Core rev: 0d9bc65139a9cabbeabe166e83f2d61f47d7bdd7) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-more-itertools: set PIP_INSTALL_PACKAGETim Orling2022-02-251-0/+2
| | | | | | | | | | | | Define PIP_INSTALL_PACKAGE as more_itertools to match the name of the wheel. [YOCTO #14638] (From OE-Core rev: 2fc5674487be59bfdda21f7646c53d90687f1c36) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-setuptools: inherit setuptools_base_metaTim Orling2022-02-251-5/+14
| | | | | | | | | | | | | | | Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. We need to bootstrap python3-setuptools-native, simply installing by unzipping the built wheel. This avoids a dependency loop. [YOCTO #14638] (From OE-Core rev: 889c05e5b4ce9a36b4ac3ac869c1ef55c2f8b566) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pluggy: inherit setuptools_build_metaTim Orling2022-02-251-1/+1
| | | | | | | | | | | | Upstream provides a pyproject.toml which while it does not declare the setuptools.build_meta backend is compatible with it. [YOCTO #14638] (From OE-Core rev: eedaa55ee5a7bec884e2deb4e39a7b737550f2f1) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-py: inherit setuptools_build_metaTim Orling2022-02-251-1/+1
| | | | | | | | | | | | Upstreama provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] (From OE-Core rev: 32177ae33ab275e9d512e0d4c85773bfbc10a44c) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-iniconfig: inherit setuptools_build_metaTim Orling2022-02-251-1/+3
| | | | | | | | | | | | | | | Upstream provides a pyproject.toml which decalres the setuptools.build_meta backend for PEP-517 packaging. DEPENDS on python3-setuptools-scm-native (as declared in the pyproject.toml build-system.requires). [YOCTO #14638] (From OE-Core rev: 9a19b82aba4d63513814982b21d7879eacad8850) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-zipp: inherit setuptools_build_metaTim Orling2022-02-251-1/+1
| | | | | | | | | | | | Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] (From OE-Core rev: 7a6846d5c9ebc972d7ebae0363834b0b371840d4) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-setuptools-scm: inherit setuptools_build_metaTim Orling2022-02-251-1/+1
| | | | | | | | | | | | Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] (From OE-Core rev: f83147625795f7b852a3ee762c31da24fb65a4c3) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pytest: inherit setuptools_build_metaTim Orling2022-02-251-2/+2
| | | | | | | | | | | | Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] (From OE-Core rev: 0e1e55cbccfb126245f65d1ff081acd159bf7709) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-git: inherit setuptools_build_metaTim Orling2022-02-251-1/+1
| | | | | | | | | | | | Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] (From OE-Core rev: 87aa5c9219b405db364508c09d0edd630c909969) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-attrs: inherit setuptools_build_metaTim Orling2022-02-251-1/+1
| | | | | | | | | | | | Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] (From OE-Core rev: 783f7ad8198933fcb9e4b5407874565a71b17bef) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pip: Improve reproducibilityRichard Purdie2022-02-252-0/+75
| | | | | | | | | | | | | | | Pip installed wheels are not reproducible currently. The direct_url files encode an installation path and the installed wheels compile the python files at their location, not their final install location which is incorrect. To fix this, simply disable the direct_urls and pass the "root" to the python compile function to strip that path out of the compiled files. (From OE-Core rev: 2c74d5346e7581949fbdebc4744c8317236221c3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pip-native: install scripts in ${bindir}Tim Orling2022-02-251-0/+17
| | | | | | | | | | | | | | | | The naïve approach of simply unzipping the built wheel is not sufficient. 'pip install' would normally have created the [console_scripts] from entry-points.txt in ${D}${bindir}. For bootstrapping purposes, hardcode the scripts and install them into ${D}${bindir}. Skip the ${bindir}/pip variant. [YOCTO #14739] (From OE-Core rev: 5b58328b610273fea42c144cd590e638c0dc1e4e) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pip: Don't change shebangRichard Purdie2022-02-252-0/+29
| | | | | | | | | | Patch pip to disable shebang mangling and also force the python executable to be python3 from the environment when building anything for the target (or nativesdk). (From OE-Core rev: 8ceb0bec18422818dcdb0efecec08ed155dc4715) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pip: inherit setuptools_build_metaTim Orling2022-02-251-2/+17
| | | | | | | | | | | | | | | | | | | Upstream provides a pyproject.toml which declares setuptools.build_meta as the backend for PEP-517 packaging. We bootstrap the -native installation by simply unzipping the wheel to PYTHON_SITEPACKAGES_DIR, so that all other recipes can use pip to install wheels (as intended by upstream). Check for presence of ${D}${bindir}/pip and remove if found (this was originally to make sure Python2 pip was the default). [YOCTO #14638] (From OE-Core rev: 082fb72ed1683a699ef4bc2c92aa987ce9c46509) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>