-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (37 loc) · 1.04 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
import os
from setuptools import setup
from setuptools.extension import Extension
version="0.0.1"
if "GITHUB_RUN_ID" in os.environ:
version += "-"
version += os.environ["GITHUB_RUN_ID"]
ext = Extension(
"ciostream.core",
sources=[
"src/ciostream/core.pyx",
"src/ciostream/ciostream_native.cpp"],
language="c++")
setup(
name="ciostream",
version=version,
author="Matthew Ballance",
author_email="matt.ballance@gmail.com",
description="Provides C++ iostream Cython wrappers",
long_description="""
Provides a Cython wrapper around C++ iostream classes.
This allows users to easily wrap a Python IO stream
and pass it to a native library that uses C++ iostreams.
""",
zip_safe=False,
packages = ['ciostream'],
package_dir = {'': 'src'},
package_data = {
'ciostream': ['*.pxd', '*.cpp', '*.h', '*.lib']
},
# entry_points={
# "ivpm.pkginfo": [
# 'ciostream = ciostream.pkginfo:PkgInfo'
# ]
# },
ext_modules=[ext]
)