-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
39 lines (32 loc) · 1011 Bytes
/
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
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# from distutils.core import setup, Extension
# import numpy as np
# ext_modules = [ Extension('mylib', sources = ['mylib.c']) ]
# setup(
# name = 'mylib',
# version = '1.0',
# include_dirs = [np.get_include()], #Add Include path of numpy
# ext_modules = ext_modules
# )
from setuptools import setup, Extension, find_packages
import numpy as np
ext_modules = [ Extension('couplingmatrix',
include_dirs = [np.get_include()],
libraries=['npymath'],
library_dirs = [np.get_include() + '\..\lib'],
sources = ['src\couplingmatrix.cc']
) ]
setup(
name = 'couplingmatrix',
version = '1.0.0',
zip_safe = True,
ext_modules = ext_modules,
# metadata for upload to PyPI
author="Fan Gong",
author_email="[email protected]",
description="This is a native package about coupling matrix",
license="MIT",
keywords="coupling matrix filter",
url="http://example.com/HelloWorld/"
)