-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (63 loc) · 1.79 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test with:
python setup.py install
"""
DESCRIPTION = ("Create PDB files of DNA")
LONG_DESCRIPTION = """
**na2pdb** is a Python package
Create PDB files of DNA based on sequence and apply spatial manipulations to
them
License is BSD3
RNA is not yet supported
"""
DISTNAME = 'na2pdb'
LICENSE = 'BSD3'
AUTHORS = "Nick Conway"
EMAIL = "[email protected]"
URL = ""
DOWNLOAD_URL = ''
CLASSIFIERS = [
'Development Status :: 1 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Cython',
'Topic :: Scientific/Engineering',
]
try:
from setuptools import setup, Extension
except ImportError:
from distutils.core import setup, Extension
import os
import sys
import shutil
pjoin = os.path.join
rpath = os.path.relpath
PACKAGE_PATH = os.path.abspath(os.path.dirname(__file__))
MODULE_PATH = pjoin(PACKAGE_PATH, 'na2pdb')
DATASETS_PATH = pjoin(MODULE_PATH, 'data')
# PDB dataset files to include in installation
na2pdb_files = [rpath(pjoin(root, f), MODULE_PATH) for root, _, files in
os.walk(DATASETS_PATH) for f in files if '.pdb' in f]
is_py_3 = int(sys.version_info[0] > 2)
setup(
name=DISTNAME,
maintainer=AUTHORS,
packages=['na2pdb'],
package_data={'na2pdb': na2pdb_files},
maintainer_email=EMAIL,
description=DESCRIPTION,
license=LICENSE,
url=URL,
download_url=DOWNLOAD_URL,
long_description=LONG_DESCRIPTION,
classifiers=CLASSIFIERS,
zip_safe=False
)