python update

This commit is contained in:
sulincix committed 2025-06-19 20:14:50 +00:00
1 parent 95d3b771e7
commit d799fb4687
59 files changed
+290 -296

No files matched your search

+3 -3
View File
@@ -1,14 +1,14 @@
#!/usr/bin/env bash
name='python'
release='2'
version='3.12'
release='3'
version='3.13'
url='https://gitlab.com/turkman'
description='Python meta package'
email='aliriza.keskin@pardus.org.tr'
maintainer='aliriza'
license=('GPLv3')
source=('pydefault' 'python.sysconf')
depends=('python3.12|python3.11|python3.10')
depends=('python3.13|python3.12')
makedepends=()
md5sums=('SKIP' 'SKIP')
uses=()
-13
View File
@@ -1,13 +0,0 @@
--- a/Lib/site.py 2019-09-06 23:59:43.080736298 +0300
+++ b/Lib/site.py 2019-09-07 00:01:05.134165490 +0300
@@ -337,7 +337,8 @@
libdirs = [sys.platlibdir]
if sys.platlibdir != "lib":
libdirs.append("lib")
+ sitepackages.insert(0, os.path.join(prefix, "share", "python3"))
+ sitepackages.insert(0, os.path.join(prefix, "lib", "python3"))
-
if os.sep == '/':
for libdir in libdirs:
path = os.path.join(prefix, libdir,
-56
View File
@@ -1,56 +0,0 @@
#!/usr/bin/env bash
name='python3.11'
release='1'
version='3.11.1'
url='https://www.python.org/downloads/'
description='Next generation of the python high-level scripting language'
email='parduscix@yandex.ru'
maintainer='sulincix'
license=('custom')
source=("https://www.python.org/ftp/python/$version/Python-$version.tar.xz"
'turkman.patch')
depends=('bzip2' 'gdbm' 'libnsl' 'libxcrypt' 'openssl' 'zlib' 'sqlite')
makedepends=( )
md5sums=('4efe92adf28875c77d3b9b2e8d3bc44a'
'SKIP')
uses=(expat ffi)
ffi_depends=('libffi')
expat_depends=('expat')
arch=('x86_64')
group=(dev.lang python)
export CFLAGS="-O2 -s"
export CXXFLAGS="-O2 -s"
cd Python-$version
setup(){
patch -Np1 -i "../turkman.patch"
./configure --prefix=/usr \
--libdir=/usr/lib \
--enable-shared \
$(use_opt expat --with-system-expat "") \
$(use_opt ffi --with-system-ffi "") \
--enable-optimizations
}
build(){
make $jobs
}
package(){
make install $jobs
mv ${DESTDIR}/usr/lib{,64}
# this symlinks provided by main python metapackage
for bin in pydoc3 idle3 python3 python3-config pip3 2to3; do
rm -f ${DESTDIR}/usr/bin/$bin
done
rm -f ${DESTDIR}/usr/lib64/pkgconfig/python3.pc
rm -f ${DESTDIR}/usr/lib64/pkgconfig/python3-embed.pc
# remove unused file
rm -f ${DESTDIR}/usr/share/man/man1/python3.1
# move libpython3.so file
mv ${DESTDIR}/usr/lib64/libpython3.so ${DESTDIR}/usr/lib64/libpython3.so.3.11
}
File renamed without changes.
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
name='python3.10'
name='python3.13'
release='1'
version='3.10.8'
version='3.13.5'
url='https://www.python.org/downloads/'
description='Next generation of the python high-level scripting language'
email='parduscix@yandex.ru'
@@ -9,39 +9,41 @@ maintainer='sulincix'
license=('custom')
source=("https://www.python.org/ftp/python/$version/Python-$version.tar.xz"
'turkman.patch')
depends=('bzip2' 'gdbm' 'libnsl' 'libxcrypt' 'openssl' 'zlib' 'sqlite')
depends=('bzip2' 'gdbm' 'libnsl' 'libxcrypt' 'openssl' 'zlib' 'mpdecimal')
makedepends=( )
md5sums=('e92356b012ed4d0e09675131d39b1bde'
sha256sums=('93e583f243454e6e9e4588ca2c2662206ad961659863277afcdb96801647d640'
'SKIP')
uses=(expat ffi)
ffi_depends=('libffi')
expat_depends=('expat')
arch=('x86_64')
group=(dev.lang python)
export CFLAGS="-O2 -s"
export CXXFLAGS="-O2 -s"
export CFLAGS="-O2 -s -flto -ffat-lto-objects"
export CXXFLAGS="-O2 -s -flto -ffat-lto-objects"
export LC_CTYPE=en_US.UTF-8
export LANG=en_US.UTF-8
cd Python-$version
setup(){
patch -Np1 -i "../turkman.patch"
./configure --prefix=/usr \
--libdir=/usr/lib \
--enable-shared \
$(use_opt expat --with-system-expat "") \
$(use_opt ffi --with-system-ffi "") \
--enable-optimizations
}
--libdir=/usr/lib64 \
--enable-ipv6 \
--enable-loadable-sqlite-extensions \
--enable-optimizations \
--enable-shared \
--with-computed-gotos \
--with-dbmliborder=gdbm:ndbm \
--with-system-expat \
--with-system-libmpdec
build(){
make $jobs
sed -i 's/^all:.*$/all: build_all/' Makefile
env -i PATH=$PATH make $jobs
}
package(){
make install $jobs
mv ${DESTDIR}/usr/lib{,64}
env -i PATH=$PATH make install $jobs DESTDIR=$DESTDIR
# this symlinks provided by main python metapackage
for bin in pydoc3 idle3 python3 python3-config pip3 2to3; do
rm -f ${DESTDIR}/usr/bin/$bin
@@ -51,6 +53,6 @@ package(){
# remove unused file
rm -f ${DESTDIR}/usr/share/man/man1/python3.1
# move libpython3.so file
mv ${DESTDIR}/usr/lib64/libpython3.so ${DESTDIR}/usr/lib64/libpython3.so.3.10
mv ${DESTDIR}/usr/lib64/libpython3.so ${DESTDIR}/usr/lib64/libpython3.so.3.12
}