Commit Graph

4 Commits

Author SHA1 Message Date
Tim Orling
3a4f842307 python3-pip-native: install scripts in ${bindir}
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>
2022-02-25 15:07:50 +00:00
Richard Purdie
d98a804617 python3-pip: Don't change shebang
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>
2022-02-25 15:07:50 +00:00
Tim Orling
5c46eeb375 python3-pip: inherit setuptools_build_meta
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>
2022-02-25 15:07:50 +00:00
wangmy
3978b4f519 python3-pip: upgrade 22.0.2 -> 22.0.3
Changelog:
=========
Features
-------
Print the exception via rich.traceback, when running with --debug. (#10791)

Bug Fixes
---------
Only calculate topological installation order, for packages that are going to
be installed/upgraded.

This fixes an AssertionError that occured when determining installation order,
for a very specific combination of upgrading-already-installed-package + change
of dependencies + fetching some packages from a package index. This combination
was especially common in Read the Docs' builds. (#10851)

Use html.parser by default, instead of falling back to html5lib when
--use-deprecated=html5lib is not passed. (#10869)

Improved Documentation
----------------------
Clarify that using per-requirement overrides disables the usage of wheels. (#9674)

(From OE-Core rev: 72874df0a76869c21a28908597a6ea04213d1aeb)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-10 10:32:08 +00:00