LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 666|回复: 0

[arch][PKGBUILD]python-scipy

[复制链接]
发表于 2005-5-2 09:42:33 | 显示全部楼层 |阅读模式
声明:
本文基于:
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
  1. #Contributor: Kevin Qian <archlinux@sina.com>
  2. pkgname=python-scipy
  3. pkgver=0.3.2
  4. pkgrel=1
  5. pkgdesc="Scientific tools for Python"
  6. url="http://www.scipy.org"
  7. depends=('python-numeric>=21.3' 'gcc-g77' 'f2py' 'atlas')
  8. source=(http://www.scipy.org/download/scipy/src/SciPy_complete-$pkgver.tar.gz)

  9. build() {
  10. cd $startdir/src/SciPy_complete-0.3.2
  11. python setup.py build :: return 1
  12. python setup.py install --prefix=/usr --root=$startdir/pkg
  13. }
复制代码


atlas - PKUBUILD:
  1. #Contributor: Kevin Qian <archlinux@sina.com>
  2. pkgname=atlas
  3. pkgver=3.6.0.PIII
  4. pkgrel=1
  5. pkgdesc="contributed ATLAS binaries for Linux from scipy.org"
  6. url="http://www.scipy.org/download/atlasbinaries/"
  7. source=(http://www.scipy.org/download/atlasbinaries/linux/atlas3.6.0_Linux_PIII.tgz)

  8. build() {
  9. cd $startdir/src
  10. chown -R root.root Linux_PIII/
  11. mkdir -p $startdir/pkg/usr/lib/atlas
  12. cp -r Linux_PIII/ $startdir/pkg/usr/lib/atlas
  13. }
复制代码


f2py - PKGBUILD:
  1. #Contributor: Kevin Qian <archlinux@sina.com>
  2. pkgname=f2py
  3. pkgver=2.45.241_1926
  4. pkgrel=1
  5. pkgdesc="Fortran to Python interface generator"
  6. url="http://cens.ioc.ee/projects/f2py2e/"
  7. depends=(python-numeric)
  8. source=(http://cens.ioc.ee/projects/f2py2e/2.x/F2PY-$pkgver.tar.gz)

  9. build() {
  10. cd $startdir/src/F2PY-$pkgver
  11. python setup.py build :: return 1
  12. python setup.py install --prefix=/usr --root=$startdir/pkg
  13. }
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表