mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 02:42:56 +02:00
New package: python-sympy-0.7.6.1
This commit is contained in:
parent
8b0b4c8aca
commit
ea1030a055
2 changed files with 44 additions and 0 deletions
43
srcpkgs/python-sympy/template
Normal file
43
srcpkgs/python-sympy/template
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
# Template file for 'python-sympy'
|
||||||
|
pkgname=python-sympy
|
||||||
|
version=0.7.6.1
|
||||||
|
revision=1
|
||||||
|
noarch=yes
|
||||||
|
wrksrc="sympy-${version}"
|
||||||
|
build_style=python-module
|
||||||
|
python_versions="2.7 3.4"
|
||||||
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
|
depends="python-mpmath"
|
||||||
|
pycompile_module="sympy"
|
||||||
|
short_desc="Computer algebra system for Python2"
|
||||||
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
|
homepage="http://sympy.org/"
|
||||||
|
license="3-clause-BSD"
|
||||||
|
distfiles="${PYPI_SITE}/s/sympy/sympy-${version}.tar.gz"
|
||||||
|
checksum=1fc272b51091aabe7d07f1bf9f0a47f3e28657fb2bec52bf3ef0e8f159f5f564
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
sed -i '/^#!/d' sympy/{benchmarks/bench_symbench,utilities/tests/diagnose_imports}.py
|
||||||
|
}
|
||||||
|
post_install() {
|
||||||
|
# replace bundled copy of mpmath
|
||||||
|
for pyver in $python_versions; do
|
||||||
|
rm -rf ${DESTDIR}/usr/lib/python${pyver}/site-packages/sympy/mpmath
|
||||||
|
ln -sf ../../mpmath ${DESTDIR}/usr/lib/python${pyver}/site-packages/sympy/mpmath
|
||||||
|
done
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
||||||
|
|
||||||
|
python3.4-sympy_package() {
|
||||||
|
noarch=yes
|
||||||
|
depends="python3.4-mpmath"
|
||||||
|
pycompile_version="3.4"
|
||||||
|
pycompile_module="sympy"
|
||||||
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
|
pkg_install() {
|
||||||
|
vbin build-3.4/scripts-3.4/isympy isympy3
|
||||||
|
vman doc/man/isympy.1 isympy3.1
|
||||||
|
vmove usr/lib/python3.4
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
||||||
|
}
|
1
srcpkgs/python3.4-sympy
Symbolic link
1
srcpkgs/python3.4-sympy
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-sympy
|
Loading…
Add table
Reference in a new issue