mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 14:47:17 +08:00
hopefully fix of python3 conflict with python2, will clean up pkgbuild, if this is fixed
This commit is contained in:
parent
1c16bfe175
commit
ffa86455e6
@ -1,6 +1,6 @@
|
||||
pkgname=python3
|
||||
pkgver=3.2
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
_pybasever=3.2
|
||||
pkgdesc="Next generation of the python high-level scripting language"
|
||||
arch=('i686' 'x86_64')
|
||||
@ -54,12 +54,19 @@ package() {
|
||||
cd "${srcdir}/Python-${pkgver}"
|
||||
make DESTDIR="${pkgdir}" install maninstall
|
||||
|
||||
# Fix conflicts with python2
|
||||
rm ${pkgdir}/usr/bin/2to3
|
||||
#rm ${pkgdir}/usr/bin/python
|
||||
#rm ${pkgdir}/usr/bin/python-config
|
||||
#rm ${pkgdir}/usr/bin/idle
|
||||
#rm ${pkgdir}/usr/bin/pydoc
|
||||
|
||||
# Why are these not done by default...
|
||||
ln -sf python3 "${pkgdir}/usr/bin/python"
|
||||
ln -sf python3-config "${pkgdir}/usr/bin/python-config"
|
||||
ln -sf idle3 "${pkgdir}/usr/bin/idle"
|
||||
ln -sf pydoc3 "${pkgdir}/usr/bin/pydoc"
|
||||
ln -sf python${_pybasever}.1 "${pkgdir}/usr/share/man/man1/python3.1"
|
||||
#ln -sf python3 "${pkgdir}/usr/bin/python"
|
||||
#ln -sf python3-config "${pkgdir}/usr/bin/python-config"
|
||||
#ln -sf idle3 "${pkgdir}/usr/bin/idle"
|
||||
#ln -sf pydoc3 "${pkgdir}/usr/bin/pydoc"
|
||||
#ln -sf python${_pybasever}.1 "${pkgdir}/usr/share/man/man1/python3.1"
|
||||
|
||||
# Fix FS#22552
|
||||
ln -sf ../../libpython${_pybasever}mu.so \
|
||||
|
Loading…
Reference in New Issue
Block a user