-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
113 lines (106 loc) · 6.18 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
__author__ = 'Georgios Rizos ([email protected])'
from setuptools import setup
# from setuptools.extension import Extension
# try:
# from Cython.Distutils import build_ext
# except ImportError:
# USE_CYTHON = False
# else:
# USE_CYTHON = True
# import numpy
# C_OPT_FLAG = "-O3"
def readme():
with open("README.md") as f:
return f.read()
# cmdclass = dict()
# ext_modules = list()
#
# Either use cython to translate the .pyx files, or compile the distributed .c files as translated by the author.
# if USE_CYTHON:
# ext_modules.append(Extension(name="reveal_graph_embedding.embedding.arcte.cython_opt.arcte",
# sources=["reveal_graph_embedding/embedding/arcte/cython_opt/arcte.pyx"],
# extra_compile_args=[C_OPT_FLAG, '-I/user/local/include/python3.4'],
# include_dirs=[numpy.get_include()]))
# ext_modules.append(Extension(name="reveal_graph_embedding.eps_randomwalk.cython_opt.push",
# sources=["reveal_graph_embedding/eps_randomwalk/cython_opt/push.pyx"],
# extra_compile_args=[C_OPT_FLAG, '-fopenmp', '-I/user/local/include/python3.4'],
# extra_link_args=['-fopenmp'],
# include_dirs=[numpy.get_include()]))
# ext_modules.append(Extension(name="reveal_graph_embedding.eps_randomwalk.cython_opt.transition",
# sources=["reveal_graph_embedding/eps_randomwalk/cython_opt/transition.pyx"],
# extra_compile_args=[C_OPT_FLAG, '-fopenmp', '-I/user/local/include/python3.4'],
# extra_link_args=['-fopenmp'],
# include_dirs=[numpy.get_include()]))
# ext_modules.append(Extension(name="reveal_graph_embedding.eps_randomwalk.cython_opt.similarity",
# sources=["reveal_graph_embedding/eps_randomwalk/cython_opt/similarity.pyx"],
# extra_compile_args=[C_OPT_FLAG, '-fopenmp', '-I/user/local/include/python3.4'],
# extra_link_args=['-fopenmp'],
# include_dirs=[numpy.get_include()]))
# cmdclass.update({"build_ext": build_ext})
# else:
# ext_modules.append(Extension(name="reveal_graph_embedding.embedding.arcte.cython_opt.arcte",
# sources=["reveal_graph_embedding/embedding/arcte/cython_opt/arcte.c"],
# extra_compile_args=[C_OPT_FLAG, '-I/user/local/include/python3.4'],
# include_dirs=[numpy.get_include()]))
# ext_modules.append(Extension(name="reveal_graph_embedding.eps_randomwalk.cython_opt.push",
# sources=["reveal_graph_embedding/eps_randomwalk/cython_opt/push.c"],
# extra_compile_args=[C_OPT_FLAG, '-fopenmp', '-I/user/local/include/python3.4'],
# extra_link_args=['-fopenmp'],
# include_dirs=[numpy.get_include()]))
# ext_modules.append(Extension(name="reveal_graph_embedding.eps_randomwalk.cython_opt.transition",
# sources=["reveal_graph_embedding/eps_randomwalk/cython_opt/transition.c"],
# extra_compile_args=[C_OPT_FLAG, '-fopenmp', '-I/user/local/include/python3.4'],
# extra_link_args=['-fopenmp'],
# include_dirs=[numpy.get_include()]))
# ext_modules.append(Extension(name="reveal_graph_embedding.eps_randomwalk.cython_opt.similarity",
# sources=["reveal_graph_embedding/eps_randomwalk/cython_opt/similarity.c"],
# extra_compile_args=[C_OPT_FLAG, '-fopenmp', '-I/user/local/include/python3.4'],
# extra_link_args=['-fopenmp'],
# include_dirs=[numpy.get_include()]))
setup(
name='reveal-graph-embedding',
version='0.1.4',
author='Georgios Rizos',
author_email='[email protected]',
packages=['reveal_graph_embedding',
'reveal_graph_embedding.datautil',
'reveal_graph_embedding.datautil.asu_datautil',
'reveal_graph_embedding.datautil.insight_datautil',
'reveal_graph_embedding.datautil.snow_datautil',
'reveal_graph_embedding.embedding',
'reveal_graph_embedding.embedding.arcte',
'reveal_graph_embedding.embedding.arcte.cython_opt',
'reveal_graph_embedding.eps_randomwalk',
'reveal_graph_embedding.eps_randomwalk.benchmarks',
'reveal_graph_embedding.eps_randomwalk.benchmarks.time_comparisons',
'reveal_graph_embedding.eps_randomwalk.cython_opt',
'reveal_graph_embedding.learning',
'reveal_graph_embedding.quality'],
# cmdclass=cmdclass,
# ext_modules=ext_modules,
url='https://github.com/MKLab-ITI/reveal-graph-embedding',
license='Apache',
description='Implementation of community-based graph embedding for user classification.',
long_description=readme(),
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: Unix',
'Programming Language :: Cython',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Scientific/Engineering :: Information Analysis'
],
keywords="online-social-network user-centric-pagerank user-centric-community-detection graph-embedding Reveal-FP7",
entry_points={
'console_scripts': ['arcte=reveal_graph_embedding.entry_points.arcte:main'],
},
include_package_data=False,
install_requires=[]
)