57 lines
1.8 KiB
Bash
57 lines
1.8 KiB
Bash
# Template file for 'python-ipython'
|
|
pkgname=python-ipython
|
|
version=4.2.0
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="ipython-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python-decorator python-pexpect python-pickleshare python-simplegeneric
|
|
python-traitlets python-backports.shutil_get_terminal_size"
|
|
pycompile_module="IPython"
|
|
short_desc="Enhanced interactive Python2 shell"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="http://ipython.org/"
|
|
license="3-clause-BSD"
|
|
distfiles="${PYPI_SITE}/i/ipython/ipython-${version}.tar.gz"
|
|
checksum=dba42f182b5f6f26630d2202efd30383712d9f7d8d8d9896b37ae2145deca616
|
|
|
|
alternatives="
|
|
ipython:ipython:/usr/bin/ipython2.7
|
|
ipython:ipython.1:/usr/share/man/man1/ipython2.7.1"
|
|
|
|
post_install() {
|
|
# use decorators of numpy
|
|
rm -f ${DESTDIR}/usr/lib/python*/site-packages/IPython/external/decorators/_decorators.py
|
|
# remove iptest
|
|
rm -f ${DESTDIR}/usr/bin/iptest*
|
|
# create ipython2 symlink
|
|
ln -sf ipython2.7 ${DESTDIR}/usr/bin/ipython2
|
|
# create versioned man pages
|
|
mv ${DESTDIR}/usr/share/man/man1/ipython{,2.7}.1
|
|
vman docs/man/ipython.1 ipython3.4.1
|
|
# install license
|
|
vlicense COPYING.rst LICENSE
|
|
}
|
|
|
|
python3.4-ipython_package() {
|
|
alternatives="
|
|
ipython:ipython:/usr/bin/ipython3.4
|
|
ipython:ipython.1:/usr/share/man/man1/ipython3.4.1
|
|
ipython3:ipython3:/usr/bin/ipython3.4
|
|
ipython3:ipython3.1:/usr/share/man/man1/ipython3.4.1"
|
|
noarch=yes
|
|
depends="python3.4-decorator python3.4-pexpect python3.4-pickleshare
|
|
python3.4-simplegeneric python3.4-traitlets"
|
|
pycompile_version="3.4"
|
|
pycompile_module="IPython"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/bin/ipython3.4
|
|
vmove usr/lib/python3.4
|
|
vmove usr/share/man/man1/ipython3.4.1
|
|
vlicense COPYING.rst LICENSE
|
|
}
|
|
}
|