-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (48 loc) · 1.36 KB
/
setup.py
File metadata and controls
51 lines (48 loc) · 1.36 KB
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
from setuptools import setup, Extension
from io import open
import numpy
requirements = [
'numpy',
]
setup(
name = 'networktools',
description = 'Some measures, surrogates, and other tools for weighted, complete networks.',
long_description = open('README.rst', encoding='utf8').read(),
author = 'Gerrit Ansmann, Christian Geier, Kirsten Stahn',
author_email = 'gansmann@uni-bonn.de',
url = 'http://github.com/neurophysik/networktools',
packages = ['networktools'],
install_requires = requirements,
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Mathematics',
],
ext_modules = [Extension(
"networktools._networktools",
sources = [
"networktools/_networktools.c",
"networktools/surrogates.c",
"networktools/initialchecks.c",
"networktools/euclid.c",
"networktools/measures.c",
],
extra_compile_args = [
"-D PYTHON",
"-fPIC",
"-Wall",
"--pedantic",
"-std=c11",
"-Wno-unknown-pragmas",
"-Wno-incompatible-pointer-types-discards-qualifiers",
"-Wno-unused-function"
],
extra_link_args = [ "-lm", "-lgsl", "-lgslcblas" ],
include_dirs = [numpy.get_include()]
)],
verbose = True
)