-
Notifications
You must be signed in to change notification settings - Fork 52
/
setup.py
69 lines (66 loc) · 1.96 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
from setuptools import setup
from setuptools.extension import Extension
from Cython.Build import cythonize
import platform
if platform.system() == "Windows": # compile with Visual C/C++
cpp_compile_args = ["-permissive-", "-O2"]
cpp_link_args = []
else: # on Linux or MacOS
cpp_compile_args = ["-std=c++11", "-Wno-missing-braces", "-O3"]
cpp_link_args = ["-std=c++11"]
extensions = [
Extension("cconf_gen", ["autode/conformers/cconf_gen.pyx"]),
Extension(
"ade_dihedrals",
sources=["autode/ext/ade_dihedrals.pyx"],
include_dirs=["autode/ext/include"],
language="c++",
extra_compile_args=cpp_compile_args,
extra_link_args=cpp_link_args,
),
Extension(
"ade_rb_opt",
sources=["autode/ext/ade_rb_opt.pyx"],
include_dirs=["autode/ext/include"],
language="c++",
extra_compile_args=cpp_compile_args,
extra_link_args=cpp_link_args,
),
]
setup(
name="autode",
version="1.4.4",
python_requires=">3.7",
packages=[
"autode",
"autode.bracket",
"autode.conformers",
"autode.calculations",
"autode.pes",
"autode.path",
"autode.neb",
"autode.opt",
"autode.opt.coordinates",
"autode.opt.optimisers",
"autode.reactions",
"autode.smiles",
"autode.species",
"autode.wrappers",
"autode.wrappers.keywords",
"autode.thermochemistry",
"autode.transition_states",
"autode.log",
"autode.solvent",
],
include_package_data=True,
package_data={
"autode.transition_states": ["lib/*.txt"],
"autode.solvent": ["lib/*.xyz"],
},
extras_require={"dev": ["black", "pre-commit"]},
ext_modules=cythonize(extensions, language_level="3"),
url="https://github.com/duartegroup/autodE",
license="MIT",
author="autodE contributors",
description="Automated reaction profile generation",
)