-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
109 lines (83 loc) · 3.27 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
from setuptools import setup
#!/usr/bin/env python
# Install dependencies listed in pyproject.toml, then
# continue with regularly scheduled setup.py.
# From https://bitbucket.org/dholth/setup-requires
import sys, subprocess, pkg_resources
#sys.path[0:0] = ['setup-requires']
#pkg_resources.working_set.add_entry('setup-requires')
def missing_requirements(specifiers):
for specifier in specifiers:
try:
pkg_resources.require(specifier)
except pkg_resources.DistributionNotFound:
yield specifier
def install_requirements(specifiers):
to_install = list(specifiers)
if to_install:
subprocess.call([sys.executable, "-m", "pip", "install",
] + to_install)
#subprocess.call([sys.executable, "-m", "pip", "install",
# "-t", "setup-requires"] + to_install)
install_requirements(missing_requirements(['pytoml']))
import pytoml
try:
with open('pyproject.toml') as f:
pyproject = pytoml.load(f)
except IOError:
pass
else:
requires = pyproject.get('build-system', {}).get('requires')
install_requirements(missing_requirements(requires))
'''
### Place normal setup.py contents below ###
from setuptools import setup
setup(name="example-package",
version = "0.0.1",
py_modules = [ 'example_package' ],
install_requires = [ ],
description = "An example of a package with setup requirements.",
license = "MIT",
author = "Emilio Example",
author_email = "emilio@example.org",
url="https://bitbucket.org/dholth/setup-requires")
# Alternatively, run real-setup.py from a separate file
# exec(compile(open("real-setup.py").read().replace('\\r\\n', '\\n'),
# __file__,
# 'exec'))
'''
setup(
name = 'POVME',
packages = ['POVME',
'POVME.packages',
'POVME.packages.pymolecule',
'POVME.packages.binana',
'POVME.packages.clustering'],
scripts = ['POVME/packages/clustering/binding_site_overlap.py',
'POVME/packages/clustering/cluster.py',
'POVME/POVME3.py',
'POVME/packages/clustering/pocketPointsPca.py'],
package_dir={'POVME': 'POVME'},
package_data={'POVME': ['examples/*/*.*','examples/*/*/*.*'#,'POVME/examples/*/*/*/*'
]},
version = '3.0.34',
description = 'POVME (Pocket VOlume MEasurer) is a Python package for extracting actionable information from ensembles of protein structures for use in drug design.',
author = 'Jeff Wagner',
author_email = 'j5wagner@ucsd.edu',
url = 'https://github.com/POVME/POVME',
download_url = 'https://github.com/POVME/POVME/tarball/2.0',
#setup_requires=['scipy','numpy'],
#build_requires=['scipy','numpy'],
install_requires=['scipy','numpy','matplotlib','networkx'],
keywords = ['protein folding', 'protein', 'pocket volume measurer', 'computational protein folding', 'protein structures', 'drug design'],
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 2.7",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Chemistry"
]
)