-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
75 lines (64 loc) · 2.24 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
#!/usr/bin/env python3
"""
# Installer for the precomplex generator scripts
"""
import os
import setuptools
# numpy is needed for 'f2py' code translation/compilation
from numpy.distutils.core import Extension
from numpy.distutils.core import setup
def main():
"""Main function"""
#
# extmodules
# These are the compiled modules within this package, C/F that needs to be compiled into a .so
extmodules = []
extmodules.append(Extension('prec_gen.get_all_torsions_mod',
[os.path.join('fortran_source', x) for x in [
'get_all_torsions_mod.f90',
'fortran_utils.f90',
]]))
extmodules.append(Extension('prec_gen.final',
[os.path.join('fortran_source', x) for x in [
'final.f90',
'fortran_utils.f90',
]]))
#
# packages
# Those are the real python (sub)packages
packages = setuptools.find_packages(exclude=['*.tests'])
#
# Entry points
# A script will be automatically created for each entry point that calls the function from the given module
entry_points = {
'console_scripts': [
'prec_gen = precomplex_generator.main:main',
],
}
#
# Package dependencies
#
dependencies = open(os.path.join(os.path.dirname(__file__), 'requirements.txt')).readlines()
dependencies_setup = [
'setuptools-git >= 0.4',
]
#
# setup
#
setup(
name='precomplex_generator',
description='Generator of a precomplex structure, i.e. a suited input structure for single-ended reaction path optimization.',
author='Maike Bergeler',
author_email='[email protected]',
license='BASF proprietary',
long_description='',
url='https://github.com/basf/precomplex_generator.git',
packages=packages,
entry_points=entry_points,
ext_modules=extmodules,
install_requires=dependencies,
setup_requires=dependencies_setup,
zip_safe=False,
)
if __name__ == '__main__':
main()