python-jupyter_client: drop install scripts
This commit is contained in:
@@ -7,7 +7,7 @@ provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
|
||||
conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
|
||||
replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
|
||||
pkgver=6.1.11
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="The reference implementation of the Jupyter protocol (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64')
|
||||
@@ -21,7 +21,6 @@ depends=("${MINGW_PACKAGE_PREFIX}-python"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-tornado"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-traitlets")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
|
||||
install=${_realname}3-${CARCH}.install
|
||||
source=("${_realname}-${pkgver}.tar.gz::https://github.com/jupyter/jupyter_client/archive/${pkgver}.tar.gz")
|
||||
sha256sums=('7a318b26b5e7aaece370f58c4a107d3ba35b01063f0668ec2e44939847a03177')
|
||||
|
||||
@@ -49,10 +48,8 @@ package() {
|
||||
find "${pkgdir}/" -name "*.pyc" -delete
|
||||
find "${pkgdir}/" -type d -empty -delete
|
||||
|
||||
local PREFIX_WIN=$(cygpath -wm ${MINGW_PREFIX})
|
||||
# fix python command in files
|
||||
for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*; do
|
||||
sed -e "s|${PREFIX_WIN}|${MINGW_PREFIX}|g" -i ${_f}
|
||||
for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*-script.py; do
|
||||
sed -e '1 { s/^#!.*$// }' -i ${_f}
|
||||
done
|
||||
|
||||
install -Dm644 "COPYING.md" "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
post_install() {
|
||||
cd mingw32
|
||||
local _prefix=$(pwd -W)
|
||||
cd -
|
||||
local _it
|
||||
# "somepackage" should be replaced with the name of your .EXE w/o 2 and .exe ext
|
||||
# Like this:
|
||||
# For "myexe.exe", it would be "myexe" .
|
||||
for _it in jupyter-run jupyter-kernel jupyter-kernelspec; do
|
||||
sed -e "s|/mingw32|${_prefix}|g" \
|
||||
-i ${_prefix}/bin/${_it}-script.py
|
||||
done
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
post_install() {
|
||||
cd mingw64
|
||||
local _prefix=$(pwd -W)
|
||||
cd -
|
||||
local _it
|
||||
for _it in jupyter-run jupyter-kernel jupyter-kernelspec; do
|
||||
sed -e "s|/mingw64|${_prefix}|g" \
|
||||
-i ${_prefix}/bin/${_it}-script.py
|
||||
done
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
Reference in New Issue
Block a user