mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-05 12:22:57 +02:00
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"
|
distfiles="${PYPI_SITE}/p/pandas/pandas-${version}.tar.gz"
|
||||||
checksum=4697606cdf023c6b7fcb74e48aaf25cf282a1a00e339d2d274cf1b663748805b
|
checksum=4697606cdf023c6b7fcb74e48aaf25cf282a1a00e339d2d274cf1b663748805b
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
# strip shebangs
|
||||||
|
find pandas -type f -name '*.py' -exec sed -i '/^#!.*python$/d' {} +
|
||||||
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'python-scipy'
|
# Template file for 'python-scipy'
|
||||||
pkgname=python-scipy
|
pkgname=python-scipy
|
||||||
version=0.18.1
|
version=0.18.1
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="scipy-${version}"
|
wrksrc="scipy-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
hostmakedepends="python-setuptools python3-setuptools gcc-fortran"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools gcc-fortran"
|
makedepends="python-devel python3-devel python-numpy python3-numpy lapack-devel"
|
||||||
makedepends="python-devel python3.4-devel python-numpy python3.4-numpy lapack-devel"
|
|
||||||
depends="python-numpy"
|
depends="python-numpy"
|
||||||
pycompile_module="scipy"
|
pycompile_module="scipy"
|
||||||
short_desc="Scientific library for Python2"
|
short_desc="Scientific library for Python2"
|
||||||
|
@ -23,13 +22,18 @@ post_install() {
|
||||||
vlicense LICENSE.txt LICENSE
|
vlicense LICENSE.txt LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-scipy_package() {
|
python3-scipy_package() {
|
||||||
pycompile_version="3.4"
|
replaces="python3.4-scipy>=0"
|
||||||
pycompile_module="scipy"
|
pycompile_module="scipy"
|
||||||
depends="python3.4-numpy"
|
depends="python3-numpy"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3*
|
||||||
vlicense LICENSE.txt LICENSE
|
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…
Add table
Reference in a new issue