-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (28 loc) · 923 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
from distutils.core import setup
# https://luminousmen.com/post/resolve-cython-and-numpy-dependencies
try:
from Cython.Build import cythonize
except ImportError:
# create closure for deferred import
def cythonize (*args, ** kwargs ):
from Cython.Build import cythonize
return cythonize(*args, ** kwargs)
setup(name='srg',
version='1.0',
description='Compute Adjacency Matrix for Two Distance Set, ie. Strongly regular graph',
url='https://github.com/willhyper/two_dist_set',
author='Chao-Wei Chen',
author_email='[email protected]',
license='MIT',
packages=['srg'],
setup_requires=[
'setuptools>=18.0',# so properly handles Cython extensions.
'cython',
],
install_requires=[
'numpy',
'pytest',
'networkx',
'matplotlib',
],
ext_modules = cythonize("srg/*.pyx"))