forked from rpmuller/pyquante2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (58 loc) · 2.16 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
#!/usr/bin/env python
from setuptools import setup
from setuptools.extension import Extension
import numpy as np
try:
from Cython.Distutils import build_ext
except ImportError:
use_cython = False
else:
use_cython = True
cmdclass = {}
ext_modules = []
if use_cython:
ext_modules += [
Extension("pyquante2.cints.one",["cython/cone_wrap.pyx","cython/cints.c"]),
Extension("pyquante2.cints.two",["cython/ctwo_wrap.pyx","cython/cints.c"]),
Extension("pyquante2.cints.hgp",["cython/chgp_wrap.pyx","cython/chgp.c"]),
Extension("pyquante2.cints.rys",["cython/crys_wrap.pyx","cython/crys.c"]),
Extension("pyquante2.cbecke",["cython/cbecke.pyx"],
include_dirs=[np.get_include()])
]
cmdclass.update({'build_ext': build_ext})
else:
ext_modules += [
Extension("pyquante2.cints.one",["cython/cone_wrap.c","cython/cints.c"]),
Extension("pyquante2.cints.two",["cython/ctwo_wrap.c","cython/cints.c"]),
Extension("pyquante2.cints.hgp",["cython/chgp_wrap.c","cython/chgp.c"]),
Extension("pyquante2.cints.rys",["cython/crys_wrap.c","cython/crys.c"]),
]
with open('README.md') as file:
long_description = file.read()
setup(name='pyquante2',
version='0.1',
description='Python Quantum Chemistry, version 2.0',
long_description = long_description,
author='Rick Muller',
author_email='[email protected]',
url='http://github.com/rpmuller/pyquante2',
install_requires=['numpy'],
packages=['pyquante2',
'pyquante2.basis',
'pyquante2.dft',
'pyquante2.geo',
'pyquante2.graphics',
'pyquante2.grid',
'pyquante2.ints',
'pyquante2.pt',
'pyquante2.scf',
'pyquante2.viewer',
],
classifiers = ["Development Status :: 3 - Alpha",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
],
cmdclass = cmdclass,
ext_modules = ext_modules,
)