forked from choderalab/openmoltools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (61 loc) · 2.06 KB
/
setup.py
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
"""gaff2xml: a python library for convert antechamber to XML
gaff2xml allows users to convert small molecule force field parameters
into XML format for use in the OpenMM simulation package.
"""
from __future__ import print_function
DOCLINES = __doc__.split("\n")
import os
import sys
import shutil
import tempfile
import subprocess
from distutils.ccompiler import new_compiler
from setuptools import setup, Extension
import numpy
try:
from Cython.Distutils import build_ext
setup_kwargs = {'cmdclass': {'build_ext': build_ext}}
cython_extension = 'pyx'
except ImportError:
setup_kwargs = {}
cython_extension = 'c'
##########################
VERSION = "0.1"
ISRELEASED = False
__version__ = VERSION
##########################
CLASSIFIERS = """\
Development Status :: 3 - Alpha
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Programming Language :: C
Programming Language :: Python
Programming Language :: Python :: 3
Topic :: Scientific/Engineering :: Bio-Informatics
Topic :: Scientific/Engineering :: Chemistry
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Operating System :: MacOS
"""
extensions = []
setup(name='gaff2xml',
author='Kyle A. Beauchamp',
author_email='[email protected]',
description=DOCLINES[0],
long_description="\n".join(DOCLINES[2:]),
version=__version__,
license='GPLv3+',
url='http://github.com/kyleabeauchamp/gaff2xml',
platforms=['Linux', 'Mac OS-X', 'Unix'],
classifiers=CLASSIFIERS.splitlines(),
packages=["gaff2xml"],
package_dir={'mdtraj': 'MDTraj', 'mdtraj.scripts': 'scripts'},
install_requires=['numpy', 'nose', 'nose-exclude'],
zip_safe=False,
scripts=['scripts/generate_example_data.py', 'scripts/processAmberForceField.py'],
ext_modules=extensions,
package_data={'gaff2xml': ['chemicals/*/*']}, # Install all data directories of the form testsystems/data/X/
**setup_kwargs
)