python-mpmath: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-16 18:53:07 +02:00
parent 7eaf113272
commit 83249cb537
4 changed files with 18 additions and 15 deletions

View File

@ -0,0 +1,4 @@
If you require plotting capabilities, install python3-matplotlib.
mpmath internally uses Python's builtin long integers by default.
For much faster high-precision arithmetic, install python3-gmpy2.

View File

@ -1,4 +0,0 @@
If you require plotting capabilities, install python3.4-matplotlib.
mpmath internally uses Python's builtin long integers by default.
For much faster high-precision arithmetic, install python3.4-gmpy2.

View File

@ -1,12 +1,11 @@
# Template file for 'python-mpmath'
pkgname=python-mpmath
version=0.19
revision=1
revision=2
noarch=yes
wrksrc="mpmath-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="mpmath"
short_desc="Python2 library for arbitrary-precision floating-point arithmetic"
@ -16,21 +15,24 @@ license="3-clause-BSD"
distfiles="${PYPI_SITE}/m/mpmath/mpmath-${version}.tar.gz"
checksum=68ddf6426dcda445323467d89892d2cffbbd1ae0b31ac1241b1b671749d63222
pre_build() {
sed -i '/^#!/d' mpmath/{matrices,tests}/*.py
}
post_install() {
vlicense LICENSE
}
python3.4-mpmath_package() {
python3-mpmath_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
depends="python3"
pycompile_module="mpmath"
short_desc="${short_desc/Python2/Python3.4}"
replaces="python3.4-mpmath>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3.4
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-mpmath_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-mpmath>=${version}_${revision}"
}

1
srcpkgs/python3-mpmath Symbolic link
View File

@ -0,0 +1 @@
python-mpmath