-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
39 lines (34 loc) · 1.21 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
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import numpy
import os
os.environ["CPPFLAGS"] = os.getenv("CPPFLAGS", "") + "-I" + numpy.get_include()
my_integrals = [Extension('mmd.integrals.onee',['cython/onee.pyx']),
Extension('mmd.integrals.twoe',['cython/twoe.pyx']),
Extension('mmd.integrals.grad',['cython/grad.pyx']),
Extension('mmd.integrals.fock',['cython/fock.pyx']),
# extra_compile_args=['-fopenmp'],
# extra_link_args=['-fopenmp'])
]
setup(
name='mmd',
version='0.0.1',
packages=find_packages(),
package_data = {'mmd' : ['mmd/basis']},
license='BSD-3',
python_requires=">=3.4",
install_requires=[
'cython',
'numpy',
'scipy',
'bitstring',
],
long_description=open('README.md').read(),
# linetrace directive for cython profiling
ext_modules=cythonize(my_integrals,
compiler_directives={'linetrace': True, 'language_level' : '3'}),
# ext_modules=cythonize(my_integrals),
include_dirs=[numpy.get_include()],
include_package_data = True,
)