python3-ipython: drop alternatives
This commit is contained in:
parent
73df0b8088
commit
651f8e96c1
1 changed files with 8 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python3-ipython'
|
# Template file for 'python3-ipython'
|
||||||
pkgname=python3-ipython
|
pkgname=python3-ipython
|
||||||
version=7.12.0
|
version=7.12.0
|
||||||
revision=1
|
revision=2
|
||||||
archs=noarch
|
archs=noarch
|
||||||
wrksrc="ipython-${version}"
|
wrksrc="ipython-${version}"
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
|
@ -9,26 +9,24 @@ hostmakedepends="python3-setuptools"
|
||||||
depends="python3-pickleshare python3-simplegeneric python3-traitlets
|
depends="python3-pickleshare python3-simplegeneric python3-traitlets
|
||||||
python3-pexpect python3-prompt_toolkit2 python3-Pygments python3-jedi
|
python3-pexpect python3-prompt_toolkit2 python3-Pygments python3-jedi
|
||||||
python3-backcall"
|
python3-backcall"
|
||||||
|
checkdepends="$depends python3-pytest python3-nose python3-matplotlib
|
||||||
|
python3-requests python3-testpath python3-numpy python3-ipython_ipykernel
|
||||||
|
python3-jupyter_nbformat python3-Pygments"
|
||||||
short_desc="Enhanced interactive Python3 shell"
|
short_desc="Enhanced interactive Python3 shell"
|
||||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
homepage="https://ipython.org/"
|
homepage="https://ipython.org/"
|
||||||
distfiles="${PYPI_SITE}/i/ipython/ipython-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/i/ipython/ipython-${version}.tar.gz"
|
||||||
checksum=d9459e7237e2e5858738ff9c3e26504b79899b58a6d49e574d352493d80684c6
|
checksum=d9459e7237e2e5858738ff9c3e26504b79899b58a6d49e574d352493d80684c6
|
||||||
|
conflicts="python-ipython<=5.8.0_2"
|
||||||
|
|
||||||
alternatives="
|
do_check() {
|
||||||
ipython:ipython:/usr/bin/ipython3
|
pytest
|
||||||
ipython:ipython.1:/usr/share/man/man1/ipython3.1"
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# use decorators of numpy
|
|
||||||
rm -f ${DESTDIR}/usr/lib/python*/site-packages/IPython/external/decorators/_decorators.py
|
|
||||||
# remove iptest
|
# remove iptest
|
||||||
rm -f ${DESTDIR}/usr/bin/iptest*
|
rm -f ${DESTDIR}/usr/bin/iptest*
|
||||||
# remove ipython for alternatives
|
|
||||||
rm -f ${DESTDIR}/usr/bin/ipython
|
|
||||||
# create versioned man pages
|
|
||||||
mv ${DESTDIR}/usr/share/man/man1/ipython{,3}.1
|
|
||||||
|
|
||||||
vlicense COPYING.rst LICENSE
|
vlicense COPYING.rst LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue