mingw-w64-ipython updates and dependencies (#4353)

ipython2-python - 5.3.0 - run ipython with winpty in python-script, ix shebang in pythong so it's tied to user's setup, add jedi and pexpect as dependency
python3-ipython - 6.5.0 - tun ipython with winpty in python-script, fix shebang in pythong so it's tied to user's setup, add jedi and pexpect as dependency
python-pexpect - 4.6.0 - new package required for ipython and probably other stuff
python-jedi - 0.12.1 - new package - required for ipython\
python-paros - 0.3.1 - new package - equired for jedi
This commit is contained in:
J. Peter Mugaas
2018-09-03 00:22:13 -04:00
committed by Алексей
parent aed18dfe28
commit f50892c3fd
11 changed files with 467 additions and 20 deletions

View File

@@ -4,25 +4,27 @@ _realname=ipython
pkgbase=mingw-w64-python2-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python2-${_realname}")
pkgver=5.3.0
pkgrel=6
pkgrel=7
pkgdesc="An enhanced Interactive Python shell (mingw-w64)"
arch=('any')
url="https://ipython.org/"
license=('BSD')
#install=ipython2-${CARCH}.install
depends=("${MINGW_PACKAGE_PREFIX}-sqlite3"
install=${_realname}2-${CARCH}.install
depends=('winpty'
"${MINGW_PACKAGE_PREFIX}-sqlite3"
"${MINGW_PACKAGE_PREFIX}-python2-traitlets"
"${MINGW_PACKAGE_PREFIX}-python2-simplegeneric"
"${MINGW_PACKAGE_PREFIX}-python2-pickleshare"
"${MINGW_PACKAGE_PREFIX}-python2-prompt_toolkit"
"${MINGW_PACKAGE_PREFIX}-python2-jedi"
"${MINGW_PACKAGE_PREFIX}-python2-win_unicode_console")
optdepends=("${MINGW_PACKAGE_PREFIX}-python2-nose: for IPython's test suite"
"${MINGW_PACKAGE_PREFIX}-python2-pyqt4: for ipython qtconsole"
"${MINGW_PACKAGE_PREFIX}-python2-sip: for ipython qtconsole"
"${MINGW_PACKAGE_PREFIX}-python2-pygments: for ipython qtconsole"
"${MINGW_PACKAGE_PREFIX}-python2-jinja: for ipython notebook")
"${MINGW_PACKAGE_PREFIX}-python2-jinja: for ipython notebook"
# "${MINGW_PACKAGE_PREFIX}-haskell-pandoc: ipython notebook conversion"
# "${MINGW_PACKAGE_PREFIX}-python2-pyzmq: ipython notebook and ipython qtconcole"
"${MINGW_PACKAGE_PREFIX}-python2-pyzmq: ipython notebook and ipython qtconcole")
# "${MINGW_PACKAGE_PREFIX}-python2-tornado: for ipython notebook"
makedepends=("${MINGW_PACKAGE_PREFIX}-python2-setuptools")
source=("${_realname}-${pkgver}.tar.gz::https://github.com/ipython/ipython/archive/${pkgver}.tar.gz"
@@ -55,8 +57,14 @@ all_build() {
for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*.cmd; do
sed -e "s|${PREFIX_WIN}/bin/||g" -i ${_f}
done
for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*; do
sed -e "s|${PREFIX_WIN}/bin/|/usr/bin/env |g" -i ${_f}
# For the command to work on the bash prompt, you must use
# winpty so include that in the Shebang before the python command.
# I don't like this but what I like really doesn't matter.
for _f in iptest iptest2 ipython ipython2; do
sed -e "s|/usr/bin/env |${MINGW_PREFIX}/|g" \
-e "s|${PREFIX_WIN}|${MINGW_PREFIX}|g" \
-e "s|#!|#!winpty |" -i "${pkgdir}${MINGW_PREFIX}/bin/${_f}"
done
}

View File

@@ -0,0 +1,14 @@
post_install() {
cd mingw32
local _prefix=$(pwd -W)
cd -
local _it
for _it in iptest2 ipython2; do
sed -e "s|/mingw32|${_prefix}|g" \
-i mingw32/bin/${_it}
done
}
post_upgrade() {
post_install
}

View File

@@ -0,0 +1,14 @@
post_install() {
cd mingw64
local _prefix=$(pwd -W)
cd -
local _it
for _it in iptest2 ipython2; do
sed -e "s|/mingw64|${_prefix}|g" \
-i mingw64/bin/${_it}
done
}
post_upgrade() {
post_install
}

View File

@@ -0,0 +1,14 @@
post_install() {
cd mingw32
local _prefix=$(pwd -W)
cd -
local _it
for _it in iptest iptest3 ipython ipython3; do
sed -e "s|/mingw32|${_prefix}|g" \
-i mingw32/bin/${_it}
done
}
post_upgrade() {
post_install
}

View File

@@ -0,0 +1,14 @@
post_install() {
cd mingw64
local _prefix=$(pwd -W)
cd -
local _it
for _it in iptest iptest3 ipython ipython3; do
sed -e "s|/mingw64|${_prefix}|g" \
-i mingw64/bin/${_it}
done
}
post_upgrade() {
post_install
}