mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
core/python to 3.10.8-2
This commit is contained in:
parent
d4452cfd67
commit
958c06a7e1
1 changed files with 10 additions and 4 deletions
|
@ -13,7 +13,7 @@ shopt -s extglob
|
|||
pkgbase=python
|
||||
pkgname=(python python-tests)
|
||||
pkgver=3.10.8
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
_pybasever=${pkgver%.*}
|
||||
pkgdesc="Next generation of the python high-level scripting language"
|
||||
arch=('x86_64')
|
||||
|
@ -107,9 +107,6 @@ package_python() {
|
|||
|
||||
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
|
||||
|
@ -124,6 +121,13 @@ package_python() {
|
|||
|
||||
# License
|
||||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
|
||||
# Split tests
|
||||
cd "$pkgdir"/usr/lib/python*/
|
||||
rm -r {ctypes/test,distutils/tests,idlelib/idle_test,lib2to3/tests,sqlite3/test,tkinter/test,unittest/test}
|
||||
cd test
|
||||
# FS#76193
|
||||
rm -r !(support)
|
||||
}
|
||||
|
||||
package_python-tests() {
|
||||
|
@ -135,6 +139,8 @@ 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)
|
||||
cd "$pkgdir"/usr/lib/python*/test
|
||||
rm -r support
|
||||
cd "$pkgdir"/usr/lib/python*/ctypes
|
||||
rm -r !(test)
|
||||
cd "$pkgdir"/usr/lib/python*/distutils
|
||||
|
|
Loading…
Reference in a new issue