mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
core/python to 3.11.3-1
This commit is contained in:
parent
4c098d1a28
commit
a36e1b535e
1 changed files with 6 additions and 9 deletions
|
@ -12,7 +12,7 @@ shopt -s extglob
|
|||
|
||||
pkgbase=python
|
||||
pkgname=(python python-tests)
|
||||
pkgver=3.10.10
|
||||
pkgver=3.11.3
|
||||
pkgrel=1
|
||||
_pybasever=${pkgver%.*}
|
||||
pkgdesc="Next generation of the python high-level scripting language"
|
||||
|
@ -22,7 +22,7 @@ url="https://www.python.org/"
|
|||
depends=('bzip2' 'expat' 'gdbm' 'libffi' 'libnsl' 'libxcrypt' 'openssl' 'zlib')
|
||||
makedepends=('tk' 'sqlite' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 'xorg-server-xvfb' 'ttf-font')
|
||||
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc})
|
||||
sha512sums=('f0aee65970a68287b34c4eafcf35c6fa09c81ba234ac356db16fbbc6c36417e4ac67071e616d118f5e192d541d7f177dcab5585b9780e842f656c09e01c37ced'
|
||||
sha512sums=('a3bba4b69322a47bfeefe42ba0fd7331b5b67fd2ab41441e2219d16ef8c6f307f1a48977afd073c18cfd24ec6cb1bfe0c4bb4b273031eb524dc7e9fb5fbcc3b6'
|
||||
'SKIP')
|
||||
validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D' # Ned Deily (Python release signing key) <nad@python.org>
|
||||
'E3FF2839C048B25C084DEBE9B26995E310250568' # Łukasz Langa (GPG langa.pl) <lukasz@langa.pl>
|
||||
|
@ -68,8 +68,7 @@ build() {
|
|||
}
|
||||
|
||||
check() {
|
||||
# test_socket: test.test_socket.RDSTest.testPeek hangs https://bugs.python.org/issue35247
|
||||
# test_tk: tkinter.test.test_tkinter.test_colorchooser.DefaultRootTest hangs
|
||||
# test_tk: test_askcolor tkinter.test.test_tkinter.test_colorchooser.DefaultRootTest hangs
|
||||
# test_pyexpat: our `debug` implementation rewrites source location, which breaks the build-time
|
||||
# only test test.test_pyexpat.HandlerExceptionTest as it cannot find source file in
|
||||
# the to-be-installed debug package
|
||||
|
@ -82,7 +81,7 @@ check() {
|
|||
|
||||
LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
|
||||
LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1920x1080x16 -ac +extension GLX" -a -n "$servernum" \
|
||||
"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_socket -x test_tk -x test_pyexpat
|
||||
"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_tk -x test_pyexpat
|
||||
}
|
||||
|
||||
package_python() {
|
||||
|
@ -122,7 +121,7 @@ package_python() {
|
|||
|
||||
# Split tests
|
||||
cd "$pkgdir"/usr/lib/python*/
|
||||
rm -r {ctypes/test,distutils/tests,idlelib/idle_test,lib2to3/tests,sqlite3/test,tkinter/test,unittest/test}
|
||||
rm -r {ctypes/test,distutils/tests,idlelib/idle_test,lib2to3/tests,tkinter/test,unittest/test}
|
||||
cd test
|
||||
# FS#76193
|
||||
rm -r !(support)
|
||||
|
@ -136,7 +135,7 @@ package_python-tests() {
|
|||
|
||||
make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" libinstall
|
||||
cd "$pkgdir"/usr/lib/python*/
|
||||
rm -r !(test|ctypes|distutils|idlelib|lib2to3|sqlite3|tkinter|unittest)
|
||||
rm -r !(test|ctypes|distutils|idlelib|lib2to3|tkinter|unittest)
|
||||
cd "$pkgdir"/usr/lib/python*/test
|
||||
rm -r support
|
||||
cd "$pkgdir"/usr/lib/python*/ctypes
|
||||
|
@ -147,8 +146,6 @@ package_python-tests() {
|
|||
rm -r !(idle_test)
|
||||
cd "$pkgdir"/usr/lib/python*/lib2to3
|
||||
rm -r !(tests)
|
||||
cd "$pkgdir"/usr/lib/python*/sqlite3
|
||||
rm -r !(test)
|
||||
cd "$pkgdir"/usr/lib/python*/tkinter
|
||||
rm -r !(test)
|
||||
cd "$pkgdir"/usr/lib/python*/unittest
|
||||
|
|
Loading…
Reference in a new issue