py3.11
This commit is contained in:
1 parent
3c9f8ec129
commit
199175afb1
6 files changed
+87
-6
No files matched your search
@@ -28,7 +28,7 @@ cd Python-$version
|
||||
setup(){
|
||||
patch -Np1 -i "../turkman.patch"
|
||||
./configure --prefix=/usr \
|
||||
--libdir=/usr/lib64 \
|
||||
--libdir=/usr/lib \
|
||||
--enable-shared \
|
||||
$(use_opt expat --with-system-expat "") \
|
||||
$(use_opt ffi --with-system-ffi "") \
|
||||
@@ -41,12 +41,15 @@ build(){
|
||||
|
||||
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.10
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user