|
声明:
本文基于:
http://bbs.archlinux.org/viewtopic.php?t=11473
做了部分修正。
Thanks to: hugelmopf
The SciPy-Package adds lots of scientific functions to Python. http://www.scipy.org/
It uses some Fortran libraries for some of the complicated algorithms (Fourier transforms, Linear Algebra operations), thus it needs the following depends:
- python (>= 2.2, already available in Pacman)
- python-numeric (already available in Pacman)
- gcc-g77 (already available in Pacman)
- ATLAS libraries: 使用下面的PKGBUILD
***Important***:
1. atlas有针对不同机器的二进制版本,请选用适当的版本,我这里是PIII的。
2. 在编译python-scipy前,先要设置以下环境变量:
export ATLAS=/usr/lib/atlas/Linux_PIII/lib/
- F2PY: 使用下面的PKGBUILD
软件名:python-scipy
版本:0.3.2-1
软件简介:Scientific tools for python
补丁:无
编写:qsdickee (Kevin Qian)
提交日期:2005年5月2日
PKGBUILD: python-scipy
- #Contributor: Kevin Qian <archlinux@sina.com>
- pkgname=python-scipy
- pkgver=0.3.2
- pkgrel=1
- pkgdesc="Scientific tools for Python"
- url="http://www.scipy.org"
- depends=('python-numeric>=21.3' 'gcc-g77' 'f2py' 'atlas')
- source=(http://www.scipy.org/download/scipy/src/SciPy_complete-$pkgver.tar.gz)
- build() {
- cd $startdir/src/SciPy_complete-0.3.2
- python setup.py build :: return 1
- python setup.py install --prefix=/usr --root=$startdir/pkg
- }
复制代码
atlas - PKUBUILD:
- #Contributor: Kevin Qian <archlinux@sina.com>
- pkgname=atlas
- pkgver=3.6.0.PIII
- pkgrel=1
- pkgdesc="contributed ATLAS binaries for Linux from scipy.org"
- url="http://www.scipy.org/download/atlasbinaries/"
- source=(http://www.scipy.org/download/atlasbinaries/linux/atlas3.6.0_Linux_PIII.tgz)
- build() {
- cd $startdir/src
- chown -R root.root Linux_PIII/
- mkdir -p $startdir/pkg/usr/lib/atlas
- cp -r Linux_PIII/ $startdir/pkg/usr/lib/atlas
- }
复制代码
f2py - PKGBUILD:
- #Contributor: Kevin Qian <archlinux@sina.com>
- pkgname=f2py
- pkgver=2.45.241_1926
- pkgrel=1
- pkgdesc="Fortran to Python interface generator"
- url="http://cens.ioc.ee/projects/f2py2e/"
- depends=(python-numeric)
- source=(http://cens.ioc.ee/projects/f2py2e/2.x/F2PY-$pkgver.tar.gz)
- build() {
- cd $startdir/src/F2PY-$pkgver
- python setup.py build :: return 1
- python setup.py install --prefix=/usr --root=$startdir/pkg
- }
复制代码 |
|