mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/python to 3.8.1-3
This commit is contained in:
parent
7c0ac4b7f0
commit
7b055b7ef7
1 changed files with 43 additions and 11 deletions
|
@ -9,9 +9,12 @@
|
|||
# - configure with --without-lto
|
||||
# - don't configure with --enable-optimizations - PGO kills builds
|
||||
|
||||
pkgname=python
|
||||
shopt -s extglob
|
||||
|
||||
pkgbase=python
|
||||
pkgname=(python python-tests)
|
||||
pkgver=3.8.1
|
||||
pkgrel=1
|
||||
pkgrel=3
|
||||
_pybasever=${pkgver%.*}
|
||||
pkgdesc="Next generation of the python high-level scripting language"
|
||||
arch=('x86_64')
|
||||
|
@ -19,14 +22,6 @@ license=('custom')
|
|||
url="https://www.python.org/"
|
||||
depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib' 'libnsl')
|
||||
makedepends=('tk' 'sqlite' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 'xorg-server-xvfb')
|
||||
optdepends=('python-setuptools'
|
||||
'python-pip'
|
||||
'sqlite'
|
||||
'mpdecimal: for decimal'
|
||||
'xz: for lzma'
|
||||
'tk: for tkinter')
|
||||
provides=('python3')
|
||||
replaces=('python3')
|
||||
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
|
||||
0001-compileall-Fix-ddir-when-recursing.patch)
|
||||
sha512sums=('d41381848cc1ec8009643b71875f395a9ac2c8e12a5b1efef33caf8a9e99a337c790d4354695c85352d11b62092ae372b5af62f78724363fcbf3504ff9a6ddca'
|
||||
|
@ -105,7 +100,16 @@ check() {
|
|||
-x test_httplib
|
||||
}
|
||||
|
||||
package() {
|
||||
package_python() {
|
||||
optdepends=('python-setuptools'
|
||||
'python-pip'
|
||||
'sqlite'
|
||||
'mpdecimal: for decimal'
|
||||
'xz: for lzma'
|
||||
'tk: for tkinter')
|
||||
provides=('python3')
|
||||
replaces=('python3')
|
||||
|
||||
cd Python-${pkgver}
|
||||
|
||||
# Hack to avoid building again
|
||||
|
@ -116,6 +120,9 @@ package() {
|
|||
|
||||
make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" install
|
||||
|
||||
# Split tests
|
||||
rm -r "$pkgdir"/usr/lib/python*/{test,ctypes/test,distutils/tests,idlelib/idle_test,lib2to3/tests,sqlite3/test,tkinter/test,unittest/test}
|
||||
|
||||
# Why are these not done by default...
|
||||
ln -s python3 "${pkgdir}"/usr/bin/python
|
||||
ln -s python3-config "${pkgdir}"/usr/bin/python-config
|
||||
|
@ -131,3 +138,28 @@ package() {
|
|||
# License
|
||||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
|
||||
package_python-tests() {
|
||||
pkgdesc="Regression tests packages for Python"
|
||||
depends=('python')
|
||||
|
||||
cd Python-${pkgver}
|
||||
|
||||
make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" libinstall
|
||||
cd "$pkgdir"/usr/lib/python*/
|
||||
rm -r !(test|ctypes|distutils|idlelib|lib2to3|sqlite3|tkinter|unittest)
|
||||
cd "$pkgdir"/usr/lib/python*/ctypes
|
||||
rm -r !(test)
|
||||
cd "$pkgdir"/usr/lib/python*/distutils
|
||||
rm -r !(tests)
|
||||
cd "$pkgdir"/usr/lib/python*/idlelib
|
||||
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
|
||||
rm -r !(test)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue