-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·41 lines (33 loc) · 1.36 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
#!/usr/bin/env python
import numpy
import setuptools
from setuptools import setup, Extension
__version__ = "0.1"
cargs = ['-O3', '-std=c++11', '-fopenmp', '-fpermissive', '-D_PYTHON_LIB','-Wunused-variable','-Wno-unused-but-set-variable', '-Wno-unused-result', '-Wno-unused-variable']
#For debug:
# cargs = ['-O1', '-g', '-std=c++11', '-fopenmp', '-fpermissive', '-Wall', '-D_PYTHON_LIB']
with open('README.md', 'r', encoding='utf-8') as f:
long_description = f.read()
module1 = Extension('gclu', sources=['python/py_interf.cpp'], include_dirs=['python','.',numpy.get_include()], extra_compile_args=cargs)
ext_modules = [module1]
setup(
name='gclu',
version='1.0',
# packages=setuptools.find_packages(include=['tspg', 'tspg.*']),
setup_requires=['wheel'],
requires=['rapidfuzz'],
python_requires='>=3',
provides=['gclu'],
description='Graph clustering TODO',
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[
# "License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
ext_modules=[module1]
)