|
1 | | -#!/usr/bin/env python |
2 | | -# -*- coding: UTF-8 -*- |
| 1 | +""" |
| 2 | +@Author: Chunel |
| 3 | +@Contact: chunel@foxmail.com |
| 4 | +@File: setup |
| 5 | +@Time: 2025/3/6 23:25 |
| 6 | +@Desc: |
| 7 | +""" |
3 | 8 |
|
4 | 9 | import glob |
5 | 10 | from setuptools import setup, Extension |
6 | 11 | import pybind11 |
7 | 12 |
|
8 | | -sources = ['PyCGraph.cpp'] + glob.glob("../src/**/*.cpp", recursive=True) |
9 | | -extra_compile_args = ["-pthread", "-std=c++11", '-fvisibility=hidden'] |
10 | | -include_dirs = [pybind11.get_include(), "../src"] |
| 13 | +_sources = ['PyCGraph.cpp'] + glob.glob("../src/**/*.cpp", recursive=True) |
| 14 | +_extra_compile_args = ["-pthread", "-std=c++11", '-fvisibility=hidden'] |
| 15 | +_include_dirs = [pybind11.get_include(), "../src"] |
11 | 16 |
|
12 | 17 | ext_modules = [ |
13 | 18 | Extension( |
14 | 19 | name = "PyCGraph", |
15 | | - sources = sources, |
16 | | - extra_compile_args = extra_compile_args, |
17 | | - include_dirs = include_dirs, |
| 20 | + sources = _sources, |
| 21 | + extra_compile_args = _extra_compile_args, |
| 22 | + include_dirs = _include_dirs, |
18 | 23 | ), |
19 | 24 | ] |
20 | 25 |
|
21 | 26 | setup( |
22 | | - name="PyCGraph", |
23 | | - version="0.0.1", |
24 | | - author="Chunel Feng", |
25 | | - description="CGraph with python API", |
26 | | - ext_modules=ext_modules, |
27 | | - zip_safe=False, |
| 27 | + name = "PyCGraph", |
| 28 | + version = "1.0.0", |
| 29 | + author = "Chunel Feng", |
| 30 | + author_email = "chunel@foxmail.com", |
| 31 | + description = "CGraph with python api wrapper by pybind11", |
| 32 | + url = "https://github.com/ChunelFeng/CGraph", |
| 33 | + license = "Apache-2.0", |
| 34 | + ext_modules = ext_modules, |
| 35 | + zip_safe = False, |
28 | 36 | ) |
0 commit comments