### this file is sourced not run
PKGVER=3.11.2
PKGARCH=x86_64

# LFS 11.3
TARBALL=Python-$PKGVER.tar.xz
MD5SUM=a957cffb58a89303b62124896881950b
SRC_URL=http://www.python.org/ftp/python/$PKGVER/$TARBALL
BUNDLE=

SLACKREQ='libreadline'
SLACKDESC="python3: python3 $PKGVER (Build-system Python)
python3: 
python3: The Python 3 package contains the Python development environment. It 
python3: is useful for object-oriented programming, writing scripts, 
python3: prototyping large programs, or developing entire applications.
python3: 
python3: https://www.python.org/
python3: 
python3: 
python3:
python3: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/Python* &&

	CONFFLAGS="$CONFFLAGS   \
		--enable-shared     \
		--with-system-expat \
		--with-system-ffi   \
		--with-readline     \
		--with-ensurepip=install  \
		--with-platlibdir=$LIBDIR \
	" &&
	./configure $CONFFLAGS &&
	make $MAKEFLAGS && make install &&

	# LFS 11.3 suppress warning and urge to upgrade pip3
	cat > /etc/pip.conf << EOF &&
[global]
root-user-action = ignore
disable-pip-version-check = true
EOF

	pkg_build_slackdesc
}
