python-scipy: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
05497bac3c
commit
0205d22afa
3 changed files with 18 additions and 9 deletions
|
@ -17,6 +17,10 @@ license="3-clause-BSD"
|
|||
distfiles="${PYPI_SITE}/p/pandas/pandas-${version}.tar.gz"
|
||||
checksum=4697606cdf023c6b7fcb74e48aaf25cf282a1a00e339d2d274cf1b663748805b
|
||||
|
||||
pre_build() {
|
||||
# strip shebangs
|
||||
find pandas -type f -name '*.py' -exec sed -i '/^#!.*python$/d' {} +
|
||||
}
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
# Template file for 'python-scipy'
|
||||
pkgname=python-scipy
|
||||
version=0.18.1
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="scipy-${version}"
|
||||
build_style=python-module
|
||||
python_versions="2.7 3.4"
|
||||
hostmakedepends="python-setuptools python3.4-setuptools gcc-fortran"
|
||||
makedepends="python-devel python3.4-devel python-numpy python3.4-numpy lapack-devel"
|
||||
hostmakedepends="python-setuptools python3-setuptools gcc-fortran"
|
||||
makedepends="python-devel python3-devel python-numpy python3-numpy lapack-devel"
|
||||
depends="python-numpy"
|
||||
pycompile_module="scipy"
|
||||
short_desc="Scientific library for Python2"
|
||||
|
@ -23,13 +22,18 @@ post_install() {
|
|||
vlicense LICENSE.txt LICENSE
|
||||
}
|
||||
|
||||
python3.4-scipy_package() {
|
||||
pycompile_version="3.4"
|
||||
python3-scipy_package() {
|
||||
replaces="python3.4-scipy>=0"
|
||||
pycompile_module="scipy"
|
||||
depends="python3.4-numpy"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
depends="python3-numpy"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3.4
|
||||
vmove usr/lib/python3*
|
||||
vlicense LICENSE.txt LICENSE
|
||||
}
|
||||
}
|
||||
python3.4-scipy_package() {
|
||||
build_style=meta
|
||||
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||
depends="python3-scipy>=${version}_${revision}"
|
||||
}
|
||||
|
|
1
srcpkgs/python3-scipy
Symbolic link
1
srcpkgs/python3-scipy
Symbolic link
|
@ -0,0 +1 @@
|
|||
python-scipy
|
Loading…
Reference in a new issue