Files
MINGW-packages/mingw-w64-python-patsy/PKGBUILD
Christoph Reiter 9757046077 python3: Update to 3.6.1 (#2587)
* 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
2017-06-15 17:40:51 +03:00

68 lines
2.5 KiB
Bash

# Contributor: Runar Tenfjord < runar dot tenfjord at gmail dot com >
_realname=patsy
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python2-${_realname}" "${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
pkgver=0.4.1
pkgrel=2
pkgdesc="A Python package for describing statistical models and for building design matrices (mingw-w64)"
arch=('any')
url="https://github.com/pydata/patsy"
license=('BSD')
makedepends=("${MINGW_PACKAGE_PREFIX}-python2-numpy"
"${MINGW_PACKAGE_PREFIX}-python3-numpy"
"${MINGW_PACKAGE_PREFIX}-python2-setuptools"
"${MINGW_PACKAGE_PREFIX}-python3-setuptools")
source=("https://pypi.python.org/packages/source/p/patsy/patsy-${pkgver}.zip")
sha256sums=('dc1cc280045b0e6e50c04706fd1e26d2a00ea400aa112f88e8142f88b0b7d3d4')
prepare() {
cd "${srcdir}"
cp -r ${_realname}-${pkgver} python2-${_realname}-${pkgver}
cp -r ${_realname}-${pkgver} python3-${_realname}-${pkgver}
}
package_python3-patsy() {
depends=("${MINGW_PACKAGE_PREFIX}-python3-numpy")
optdepends=("${MINGW_PACKAGE_PREFIX}-python3-nose: needed for integrated test suite"
"${MINGW_PACKAGE_PREFIX}-python3-scipy: needed for spline-related functions")
cd ${srcdir}/python3-${_realname}-${pkgver}
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
${MINGW_PREFIX}/bin/python3 setup.py install --prefix=${MINGW_PREFIX} \
--root "${pkgdir}" --optimize=1
install -Dm644 "${srcdir}/python3-${_realname}-${pkgver}/LICENSE.txt" \
"${pkgdir}${MINGW_PREFIX}/share/licenses/python3-${_realname}/LICENSE"
}
package_python2-patsy() {
depends=("${MINGW_PACKAGE_PREFIX}-python2-numpy")
optdepends=("${MINGW_PACKAGE_PREFIX}-python2-nose: needed for integrated test suite"
"${MINGW_PACKAGE_PREFIX}-python2-scipy: needed for spline-related functions")
cd ${srcdir}/python2-${_realname}-${pkgver}
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
${MINGW_PREFIX}/bin/python2 setup.py install --prefix=${MINGW_PREFIX} \
--root "${pkgdir}" --optimize=1
install -Dm644 "${srcdir}/python3-${_realname}-${pkgver}/LICENSE.txt" \
"${pkgdir}${MINGW_PREFIX}/share/licenses/python2-${_realname}/LICENSE"
}
package_mingw-w64-i686-python2-patsy() {
package_python2-patsy
}
package_mingw-w64-i686-python3-patsy() {
package_python3-patsy
}
package_mingw-w64-x86_64-python2-patsy() {
package_python2-patsy
}
package_mingw-w64-x86_64-python3-patsy() {
package_python3-patsy
}