mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 12:16:41 +02:00
eclass/python-utils-r1: Sync with Gentoo
It's from Gentoo commit 07446fc250c157ce77518bcf61f30c405f9433ef. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
0e0af949d1
commit
9b6083569a
@ -929,8 +929,12 @@ _python_wrapper_setup() {
|
||||
chmod +x "${workdir}/bin/python-config" \
|
||||
"${workdir}/bin/python3-config" || die
|
||||
|
||||
# Python 2.6+.
|
||||
ln -s "${PYTHON/python/2to3-}" "${workdir}"/bin/2to3 || die
|
||||
# Python 2.6+. Deprecated in 3.11, removed in 3.13.
|
||||
if ver_test ${EPYTHON#python} -lt 3.13; then
|
||||
ln -s "${PYTHON/python/2to3-}" "${workdir}"/bin/2to3 || die
|
||||
else
|
||||
nonsupp+=( 2to3 )
|
||||
fi
|
||||
|
||||
# Python 2.7+.
|
||||
ln -s "${EPREFIX}"/usr/$(get_libdir)/pkgconfig/${EPYTHON/n/n-}.pc \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user