forked from deepgraph/deepgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
67 lines (62 loc) · 2.19 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import sys
from setuptools import setup, find_packages, Extension
import numpy as np
if '--use-cython' in sys.argv:
USE_CYTHON = True
sys.argv.remove('--use-cython')
else:
USE_CYTHON = False
ext = '.pyx' if USE_CYTHON else '.c'
# cppext = '' if USE_CYTHON else 'pp'
extensions = [
Extension(
"deepgraph._triu_indices",
["deepgraph/_triu_indices" + ext],
include_dirs=[np.get_include()],
# language='c++',
),
Extension(
"deepgraph._find_selected_indices",
["deepgraph/_find_selected_indices" + ext],
include_dirs=[np.get_include()]
)
]
if USE_CYTHON:
from Cython.Build import cythonize
extensions = cythonize(extensions)
setup(
name="DeepGraph",
version='0.2.2',
packages=find_packages(),
author="Dominik Traxl",
author_email="dominik.traxl@posteo.org",
url='https://github.com/deepgraph/deepgraph/',
download_url='https://github.com/deepgraph/deepgraph/tarball/v0.2.2',
description=("Analyze Data with Pandas-based Networks."),
long_description=open('README.rst').read(),
install_requires=['numpy>=1.6',
'pandas>=0.17.0'],
license="BSD",
classifiers=[
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Cython',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics'],
ext_modules=extensions,
package_data={'deepgraph': ['../tests/*.py',
'../LICENSE.txt',
'./*.pyx',
'./*.c',
'./*.cpp',
]},
)