-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup_ext.py
37 lines (34 loc) · 1.31 KB
/
setup_ext.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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from numpy.distutils.core import setup, Extension
from evoMPS.version import __version__
import numpy as np
ext_modules = [Extension("evoMPS.matmul", ["evoMPS/matmul.c"]),
Extension("evoMPS.core_common", ["evoMPS/core_common.c"]),
Extension("evoMPS.allclose", ["evoMPS/allclose.c"]),
Extension("evoMPS.tdvp_calc_C", ["evoMPS/tdvp_calc_C.c"])
]
setup(name='evoMPS-ext',
version=__version__,
description='Compiled extensions for evoMPS.',
author='Ashley Milsted',
url='https://github.com/amilsted/evoMPS',
license="BSD",
classifiers=[
'Environment :: Console',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Other Audience',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Physics',
],
packages = ['evoMPS'],
requires = ["scipy (>=0.7)"],
include_dirs = [np.get_include()],
ext_modules = ext_modules
)