* python3: Update to 3.6.1
The patches starting with 16 are new to fix the build.
Some no longer relevant patches were dropped, the rest is just refreshed.
* Bump pkgrel of all packages containing Python 3 bytecode/extensions.
The package list was generated using:
pkgfile.exe -R mingw64 -r "cpython.*\\.(py[cod]|dll)"
* lensfun: Add cmake to makedepends
* numpy: Don't hardcode the Python version
* blender: rebuild for new Python
* boost: Don't hardcode Python versions; rebuild
* pillow: Don't hardcode Python version; rebuild
* python-dateutil: Don't hardcode Python versions
* sip: Don't hardcode Python versions
* pyqt4: Don't hardcode Python versions; rebuild
* pyqt5: Don't hardcode Python versions; rebuild
* opencv: Update Python3 version in patch
82 lines
2.7 KiB
Bash
82 lines
2.7 KiB
Bash
# Contributor: Runar Tenfjord < runar dot tenfjord at gmail dot com >
|
|
|
|
_realname=numexpr
|
|
pkgbase=mingw-w64-python-${_realname}
|
|
pkgname=("${MINGW_PACKAGE_PREFIX}-python2-$_realname" "${MINGW_PACKAGE_PREFIX}-python3-$_realname")
|
|
pkgver=2.4.6
|
|
pkgrel=2
|
|
pkgdesc="Fast numerical array expression evaluator for Python, NumPy, PyTables, pandas. (mingw-w64)"
|
|
arch=('any')
|
|
url="https://github.com/pydata/numexpr"
|
|
license=('MIT')
|
|
makedepends=("${MINGW_PACKAGE_PREFIX}-python2-numpy"
|
|
"${MINGW_PACKAGE_PREFIX}-python3-numpy"
|
|
"${MINGW_PACKAGE_PREFIX}-python2-setuptools"
|
|
"${MINGW_PACKAGE_PREFIX}-python3-setuptools"
|
|
"${MINGW_PACKAGE_PREFIX}-gcc")
|
|
source=("${_realname}-${pkgver}.tar.gz"::https://github.com/pydata/numexpr/archive/v${pkgver}.tar.gz)
|
|
sha256sums=('2681faf55a3f19ba4424cc3d6f0a10610ebd49f029f8453f0ba64dd5c0fe4e0f')
|
|
|
|
prepare() {
|
|
cp -a ${_realname}-${pkgver} $_realname-py2-${pkgver}
|
|
cp -a ${_realname}-${pkgver} $_realname-py3-${pkgver}
|
|
|
|
cd ${_realname}-py2-${pkgver}
|
|
sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
|
|
-e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
|
|
-e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
|
|
-i $(find . -name '*.py')
|
|
}
|
|
|
|
build() {
|
|
# build for python2
|
|
cd ${srcdir}/${_realname}-py2-${pkgver}
|
|
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
|
${MINGW_PREFIX}/bin/python2 setup.py build
|
|
|
|
# build for python3
|
|
cd ${srcdir}/${_realname}-py3-${pkgver}
|
|
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
|
${MINGW_PREFIX}/bin/python3 setup.py build
|
|
}
|
|
|
|
package_python2-numexpr() {
|
|
depends=("${MINGW_PACKAGE_PREFIX}-python2-numpy")
|
|
|
|
cd ${_realname}-py2-${pkgver}
|
|
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
|
${MINGW_PREFIX}/bin/python2 setup.py install --skip-build \
|
|
--prefix=${MINGW_PREFIX} --root=${pkgdir} --optimize=1
|
|
|
|
install -Dm644 LICENSE.txt \
|
|
"${pkgdir}${MINGW_PREFIX}/share/licenses/python2-${_realname}/LICENSE.txt"
|
|
}
|
|
|
|
package_python3-numexpr() {
|
|
depends=("${MINGW_PACKAGE_PREFIX}-python3-numpy")
|
|
|
|
cd ${_realname}-py3-${pkgver}
|
|
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
|
${MINGW_PREFIX}/bin/python3 setup.py install --skip-build \
|
|
--prefix=${MINGW_PREFIX} --root=${pkgdir} --optimize=1
|
|
|
|
install -Dm644 LICENSE.txt \
|
|
"${pkgdir}${MINGW_PREFIX}/share/licenses/python3-${_realname}/LICENSE.txt"
|
|
}
|
|
|
|
package_mingw-w64-i686-python2-numexpr() {
|
|
package_python2-numexpr
|
|
}
|
|
|
|
package_mingw-w64-i686-python3-numexpr() {
|
|
package_python3-numexpr
|
|
}
|
|
|
|
package_mingw-w64-x86_64-python2-numexpr() {
|
|
package_python2-numexpr
|
|
}
|
|
|
|
package_mingw-w64-x86_64-python3-numexpr() {
|
|
package_python3-numexpr
|
|
}
|