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
36 lines (32 loc) · 860 Bytes
/
setup.py
File metadata and controls
36 lines (32 loc) · 860 Bytes
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
"""
@Author: Chunel
@Contact: chunel@foxmail.com
@File: setup
@Time: 2025/3/6 23:25
@Desc:
"""
import glob
from setuptools import setup, Extension
import 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",
sources = _sources,
extra_compile_args = _extra_compile_args,
include_dirs = _include_dirs,
),
]
setup(
name = "PyCGraph",
version = "1.0.0",
author = "Chunel Feng",
author_email = "chunel@foxmail.com",
description = "CGraph with python api wrapper by pybind11",
url = "https://github.com/ChunelFeng/CGraph",
license = "MIT",
ext_modules = ext_modules,
zip_safe = False,
)