mingw-w64-python-hyphothesis - 3.76.0 - Update to latest version mingw-w64-ptyhon-jupyter-lient - 5.4 - Update to latest version mingw-w64-python-upyter-core - 4.4 - fix startup script files to run from MSYS2 prompt mingw-w64-python-path - 11/5 - Update to latest version, fix dependencies to match Archlinux omgw=w64=[u[arsomg - 2.2.1 - Update to latest version, rework to conform to pattern I established to facilitate tests mingw-w64-python2-importlib_resources 1.0.1 - New package required by python-importlib-metadata mingw-w64-python-importlib-metadata - 0.6 - new package required by python-path mingw-w64-python-jupyter-console - devide into separate PKGBUIL's so python2 version is 5.2.0 and python3 version is 6.0.0 - An upgrade - Jupyter-console is dropping python2 in latest version
98 lines
2.8 KiB
Bash
98 lines
2.8 KiB
Bash
# Maintainer: Patrick Stewart <patstew@gmail.com>
|
|
|
|
_realname=jupyter_core
|
|
pkgbase=mingw-w64-python-${_realname}
|
|
pkgname=("${MINGW_PACKAGE_PREFIX}-python2-${_realname}" "${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
|
|
pkgver=4.4.0
|
|
pkgrel=3
|
|
pkgdesc="Core common functionality of Jupyter projects. (mingw-w64)"
|
|
arch=('any')
|
|
url="https://jupyter.org/"
|
|
license=('BSD')
|
|
makedepends=("${MINGW_PACKAGE_PREFIX}-python2-setuptools"
|
|
"${MINGW_PACKAGE_PREFIX}-python3-setuptools")
|
|
source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/jupyter/jupyter_core/archive/${pkgver}.tar.gz")
|
|
sha256sums=('a3c693cb4cd1251f887f034eba4b74e5ad1beab5baef43cc3ae9387450e72367')
|
|
|
|
prepare() {
|
|
cd "${srcdir}"
|
|
for builddir in python{2,3}-build-${CARCH}; do
|
|
rm -rf ${builddir}
|
|
cp -r "${_realname}-${pkgver}" "${builddir}"
|
|
done
|
|
# Set version for setuptools_scm
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
|
}
|
|
|
|
# Note that build() is sometimes skipped because it's done in
|
|
# the packages setup.py install for simplicity if you can do so.
|
|
# but sometimes, you want to do a check before install which would
|
|
# also trigger the build.
|
|
build() {
|
|
for pver in {2,3}; do
|
|
msg "Python ${pver} build for ${CARCH}"
|
|
cd "${srcdir}/python${pver}-build-${CARCH}"
|
|
${MINGW_PREFIX}/bin/python${pver} setup.py build
|
|
done
|
|
}
|
|
|
|
all_build() {
|
|
|
|
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
|
${MINGW_PREFIX}/bin/${1} setup.py install \
|
|
--prefix=${MINGW_PREFIX} \
|
|
--root="${pkgdir}" --optimize=1 --skip-build
|
|
|
|
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}
|
|
done
|
|
}
|
|
|
|
package_python3-jupyter_core() {
|
|
local interpreter=python3
|
|
depends=("${MINGW_PACKAGE_PREFIX}-python3")
|
|
install=${_realname}3-${CARCH}.install
|
|
cd "${srcdir}/python3-build-${CARCH}"
|
|
|
|
all_build ${interpreter}
|
|
|
|
install -Dm644 "COPYING.md" "${pkgdir}${MINGW_PREFIX}/share/licenses/python3-${_realname}/LICENSE"
|
|
}
|
|
|
|
package_python2-jupyter_core() {
|
|
local interpreter=python2
|
|
depends=("${MINGW_PACKAGE_PREFIX}-python2")
|
|
install=${_realname}2-${CARCH}.install
|
|
cd "${srcdir}/python2-build-${CARCH}"
|
|
|
|
all_build ${interpreter}
|
|
|
|
install -Dm644 "COPYING.md" "${pkgdir}${MINGW_PREFIX}/share/licenses/python2-${_realname}/LICENSE"
|
|
|
|
cd "${pkgdir}${MINGW_PREFIX}"/bin
|
|
for _f in *; do
|
|
mv ${_f} ${_f/%.*/}2${_f/${_f/%.*/}/}
|
|
done
|
|
}
|
|
|
|
package_mingw-w64-i686-python2-jupyter_core() {
|
|
package_python2-jupyter_core
|
|
}
|
|
|
|
package_mingw-w64-i686-python3-jupyter_core() {
|
|
package_python3-jupyter_core
|
|
}
|
|
|
|
package_mingw-w64-x86_64-python2-jupyter_core() {
|
|
package_python2-jupyter_core
|
|
}
|
|
|
|
package_mingw-w64-x86_64-python3-jupyter_core() {
|
|
package_python3-jupyter_core
|
|
}
|