mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 14:07:13 +08:00
update python 3.4.3
This commit is contained in:
parent
c5218a2c99
commit
80f131a018
@ -7,13 +7,13 @@
|
||||
# Mateusz Krawczuk <willingmagic@gmail.com>
|
||||
|
||||
pkgname=python3
|
||||
pkgver=3.4.2
|
||||
pkgver=3.4.3
|
||||
pkgrel=1
|
||||
_pybasever=3.4
|
||||
pkgdesc="Next generation of the python high-level scripting language"
|
||||
arch=('x86_64')
|
||||
license=('custom')
|
||||
url="http://www.python.org"
|
||||
url="http://www.python.org/"
|
||||
depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
|
||||
makedepends=('tk' 'sqlite3' 'valgrind' 'bluez')
|
||||
optdepends=('python3-setuptools'
|
||||
@ -23,7 +23,7 @@ optdepends=('python3-setuptools'
|
||||
'tk: for tkinter')
|
||||
options=('!makeflags')
|
||||
source=(http://www.python.org/ftp/python/${pkgver}/Python-${pkgver}.tar.xz)
|
||||
md5sums=('36fc7327c02c6f12fa24fc9ba78039e3')
|
||||
md5sums=('7d092d1bba6e17f0d9bd21b49e441dd5')
|
||||
|
||||
prepare() {
|
||||
cd Python-${pkgver}
|
||||
@ -31,21 +31,23 @@ prepare(){
|
||||
# FS#23997
|
||||
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
|
||||
|
||||
# Ensure that we are using the system copy of various libraries (expat, zlib and libffi),
|
||||
# Ensure that we are using the system copy of various libraries (expat, zlib, libffi, and libmpdec),
|
||||
# rather than copies shipped in the tarball
|
||||
rm -r Modules/expat
|
||||
rm -r Modules/zlib
|
||||
rm -r Modules/_ctypes/{darwin,libffi}*
|
||||
rm -r Modules/_decimal/libmpdec
|
||||
}
|
||||
|
||||
build() {
|
||||
cd Python-${pkgver}
|
||||
|
||||
# Disable bundled pip & setuptools
|
||||
./configure --prefix=/usr \
|
||||
--enable-shared \
|
||||
--with-threads \
|
||||
--with-computed-gotos \
|
||||
--enable-ipv6 \
|
||||
--with-valgrind \
|
||||
--with-system-expat \
|
||||
--with-dbmliborder=gdbm:ndbm \
|
||||
--with-system-ffi \
|
||||
@ -55,9 +57,12 @@ build() {
|
||||
}
|
||||
|
||||
check() {
|
||||
# test_site: http://bugs.python.org/issue21535
|
||||
|
||||
cd Python-${pkgver}
|
||||
LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
|
||||
"${srcdir}/Python-${pkgver}/python" -m test.regrtest -uall -x test_posixpath test_uuid test_site test_urllib2_localnet test_gdb test_socket
|
||||
TERM=screen \
|
||||
"${srcdir}/Python-${pkgver}/python" -m test.regrtest -uall -x test_site test_posixpath test_urllib2_localnet
|
||||
}
|
||||
|
||||
package() {
|
||||
@ -71,9 +76,8 @@ package() {
|
||||
#rm ${pkgdir}/usr/bin/idle
|
||||
#rm ${pkgdir}/usr/bin/pydoc
|
||||
|
||||
|
||||
# Fix FS#22552
|
||||
ln -sf ../../libpython${_pybasever}mu.so \
|
||||
ln -sf ../../libpython${_pybasever}m.so \
|
||||
"${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so"
|
||||
|
||||
# Clean-up reference to build directory
|
||||
|
Loading…
Reference in New Issue
Block a user