blob: c306b335803b584bfb46361ede0694162cd19258 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $Id: PKGBUILD 57440 2011-10-27 20:16:15Z lcarlier $
# Contributor: Hector <hsearaDOTatDOTgmailDOTcom>
pkgname=('python-mdtraj')
pkgver=1.10.1
pkgrel=1
pkgdesc='A modern, open library for the analysis of molecular dynamics trajectories'
url='http://mdtraj.org/'
license=("LGPL")
arch=('x86_64')
depends=('python-astunparse')
makedepends=('python-versioneer' 'python-setuptools' 'cython')
options=('!libtool')
source=("https://github.com/SimTk/mdtraj/archive/${pkgver}.tar.gz")
sha256sums=('7272a6c6aed8902ac43dce2bf503db39879289c07307300285cf3ecc0f213ca9')
build() {
msg2 "Building mdtraj"
cd "${srcdir}/mdtraj-${pkgver}"
python setup.py build
}
package_python-mdtraj() {
depends=('python-numpy')
optdepends=('python-scipy: For loading and saving AMBER netcdf formatted trajectories.'
'python-pandas: Some functionality, including mol2 parsing, requires pandas.'
'python-nose: To run tests.'
'python-scripttest: To run some of the tests with nose "nosetest -v mdtraj".'
'python-networkx: Required for some of the functions'
'python-pytables: Working with HDF5 formatted trajectories requires the PyTables package.')
msg2 "Installing mdtraj"
cd "${srcdir}/mdtraj-${pkgver}"
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
# Remove left over directories from distribute utils.
find ${pkgdir} -type d -name "__pycache__" -exec rm -r {} \; -prune
}
|