forked from ChunelFeng/CGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
77 lines (73 loc) · 2.53 KB
/
setup.py
File metadata and controls
77 lines (73 loc) · 2.53 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
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
"""
@Author: Chunel
@Contact: chunel@foxmail.com
@File: setup
@Time: 2025/3/6 23:25
@Desc:
"""
import glob
from setuptools import setup, Extension
import pybind11
__PYCGRAPH_NAME__ = "PyCGraph"
__PYCGRAPH_VERSION__ = "3.1.2"
__PYCGRAPH_AUTHOR__ = "Chunel"
__PYCGRAPH_AUTHOR_EMAIL__ = "chunel@foxmail.com"
__PYCGRAPH_DESCRIPTION__ = "CGraph with python api wrapper by pybind11"
__PYCGRAPH_URL__ = "https://github.com/ChunelFeng/CGraph"
__PYCGRAPH_LICENSE__ = "MIT"
__PYCGRAPH_LONG_DESCRIPTION__ = 'You can get everything in CGraph github main page : [CGraph](https://github.com/ChunelFeng/CGraph)'
__PYCGRAPH_KEYWORDS__ = [__PYCGRAPH_NAME__,
"CGraph",
"dag",
"parallel",
"airflow",
"taskflow",
"workflow",
"pybind11"]
_sources = ['PyCGraph.cpp'] + glob.glob("../src/**/*.cpp", recursive=True)
_extra_compile_args = ["-pthread",
"-std=c++11",
"-fvisibility=hidden"]
_include_dirs = [pybind11.get_include(),
"../src"]
_ext_modules = [
Extension(
name=__PYCGRAPH_NAME__,
sources=_sources,
extra_compile_args=_extra_compile_args,
include_dirs=_include_dirs,
),
]
setup(
name=__PYCGRAPH_NAME__,
version=__PYCGRAPH_VERSION__,
author=__PYCGRAPH_AUTHOR__,
author_email=__PYCGRAPH_AUTHOR_EMAIL__,
description=__PYCGRAPH_DESCRIPTION__,
url=__PYCGRAPH_URL__,
license=__PYCGRAPH_LICENSE__,
ext_modules=_ext_modules,
zip_safe=False,
long_description=__PYCGRAPH_LONG_DESCRIPTION__,
long_description_content_type="text/markdown",
python_requires=">=3.8",
keywords=__PYCGRAPH_KEYWORDS__,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: C++",
"Operating System :: Unix",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"License :: OSI Approved :: MIT License",
"Natural Language :: Chinese (Simplified)",
"Natural Language :: English",
]
)