update: lfs-12.2-systemd/python-3.12.5 remove ensurepip

This commit is contained in:
Yingjie Wang 2025-01-26 17:55:46 -05:00
parent e0f69c8ddb
commit 2007028a5f
2 changed files with 2 additions and 10 deletions

View File

@ -5,15 +5,12 @@ license=('PSF-2.0')
homepage="https://www.python.org/"
sources=("Python-${pkgver}.tar.xz"
"${pkgname}-${pkgver}-docs-html.tar.bz2"
"pip.conf"
)
urls=("https://www.python.org/ftp/${pkgname}/${pkgver}/${sources[0]}"
"https://www.python.org/ftp/${pkgname}/doc/${pkgver}/${sources[1]}"
"https://gitea.phywyj.dynv6.net/wyj/LFS-PKGBUILDs/raw/branch/main/lfs-12.2-systemd/python-3.12.5/pip.conf"
)
md5sums=("02c7d269e077f4034963bba6befdc715"
"52274d813236ca4a972fb6988480dc56"
"a9564f950e742003368f665db8c0e067"
)
src_prepare() {
@ -28,6 +25,7 @@ src_build() {
./configure --prefix=/usr \
--enable-shared \
--with-system-expat \
--without-ensurepip \
--enable-optimizations
make
}
@ -41,7 +39,7 @@ src_install() {
# PGO should be done with -O3
CFLAGS="${CFLAGS/-O2/-O3} -ffat-lto-objects"
make DESTDIR="${pkgdir}" install
make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" install
ln -s python3 "${pkgdir}"/usr/bin/python
ln -s python3-config "${pkgdir}"/usr/bin/python-config
@ -49,9 +47,6 @@ src_install() {
ln -s pydoc3 "${pkgdir}"/usr/bin/pydoc
ln -s python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1
install -dm755 "${pkgdir}/etc"
install -m644 "${DIST_DIR}/${pkgname}-${pkgver}/pip.conf" "${pkgdir}/etc/pip.conf"
# doc
install -v -dm755 "${pkgdir}/usr/share/doc/python-3.12.5/html"
cp -R --no-preserve=mode python-${pkgver}-docs-html/* \

View File

@ -1,3 +0,0 @@
[global]
root-user-action = ignore
disable-pip-version-check = true