blob: 9be6bc6e91ca3bac2abfcc4b68fdfb4ef0230ea8 (
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
|
# $Id: PKGBUILD 57440 2011-10-27 20:16:15Z lcarlier $
# Contributor: Hector <hsearaDOTatDOTgmailDOTcom>
# Contributor: Vedran Miletic <vedran AT miletic DOT net>
pkgname=python-mdtraj
pkgver=1.11.0
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=('fefca787f882d0716a7aeb01b4d8e30caddbd2be0b2893acfa7201c31d13c786')
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
}
|