py3.12 init
This commit is contained in:
1 parent
7877cd146c
commit
9959052ee9
3 files changed
+107
No files matched your search
@@ -0,0 +1,15 @@
|
|||||||
|
*** a/Lib/site.py Tue Feb 7 13:15:11 2023
|
||||||
|
--- b/Lib/site.py Tue Feb 7 13:15:45 2023
|
||||||
|
*************** def getsitepackages(prefixes=None):
|
||||||
|
*** 366,371 ****
|
||||||
|
--- 366,374 ----
|
||||||
|
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"))
|
||||||
|
+
|
||||||
|
for libdir in libdirs:
|
||||||
|
path = os.path.join(prefix, libdir,
|
||||||
|
"python%d.%d" % sys.version_info[:2],
|
||||||
|
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='python3.12'
|
||||||
|
release='1'
|
||||||
|
version='3.12.4'
|
||||||
|
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=( )
|
||||||
|
sha256sums=('f6d419a6d8743ab26700801b4908d26d97e8b986e14f95de31b32de2b0e79554'
|
||||||
|
'SKIP')
|
||||||
|
expat_depends=('expat')
|
||||||
|
arch=('x86_64')
|
||||||
|
group=(dev.lang python)
|
||||||
|
|
||||||
|
export CFLAGS="-O2 -s -DNCURSES_WIDECHAR=1"
|
||||||
|
export CXXFLAGS="-O2 -s -DNCURSES_WIDECHAR=1"
|
||||||
|
export LDFLAGS="-lncursesw"
|
||||||
|
|
||||||
|
|
||||||
|
cd Python-$version
|
||||||
|
|
||||||
|
setup(){
|
||||||
|
patch -Np1 -i "../turkman.patch"
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--libdir=/usr/lib \
|
||||||
|
--enable-ipv6 \
|
||||||
|
--enable-loadable-sqlite-extensions \
|
||||||
|
--enable-optimizations \
|
||||||
|
--enable-shared \
|
||||||
|
--with-lto \
|
||||||
|
--with-computed-gotos \
|
||||||
|
--with-dbmliborder=gdbm:ndbm \
|
||||||
|
--with-system-expat \
|
||||||
|
--with-system-libmpdec
|
||||||
|
}
|
||||||
|
|
||||||
|
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.12
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='mpdecimal'
|
||||||
|
release='1'
|
||||||
|
version='4.0.0'
|
||||||
|
url='https://www.bytereef.org/mpdecimal/index.html'
|
||||||
|
description='complete implementation of the General Decimal Arithmetic Specification'
|
||||||
|
email='aliriza.keskin@pardus.org.tr'
|
||||||
|
maintainer='aliriza'
|
||||||
|
license=('GPLv3')
|
||||||
|
source=("https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-$version.tar.gz")
|
||||||
|
depends=()
|
||||||
|
makedepends=()
|
||||||
|
sha256sums=('942445c3245b22730fd41a67a7c5c231d11cb1b9936b9c0f76334fb7d0b4468c')
|
||||||
|
group=(dev.libs)
|
||||||
|
uses=()
|
||||||
|
arch=('x86_64')
|
||||||
|
|
||||||
|
cd $name-$version
|
||||||
|
|
||||||
|
setup () {
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--libdir=/usr/lib64/
|
||||||
|
}
|
||||||
|
|
||||||
|
build () {
|
||||||
|
make $jobs
|
||||||
|
}
|
||||||
|
|
||||||
|
package () {
|
||||||
|
make install $jobs
|
||||||
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user