-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
37 lines (33 loc) · 1.02 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
from pybind11.setup_helpers import Pybind11Extension, build_ext
from setuptools import setup
__version__ = "0.0.1"
ext_modules = [
Pybind11Extension(
"opusenc",
["src/main.cpp"],
define_macros=[("VERSION_INFO", __version__)],
include_dirs=[
"/usr/include/opus",
"/usr/include/opusenc",
],
library_dirs=["/usr/lib/x86_64-linux-gnu", "/usr/local/lib"],
libraries=["opus", "opusenc"],
),
]
setup(
name="opusenc",
version=__version__,
author="Fish Audio",
author_email="[email protected]",
url="https://github.com/fishaudio/opusenc",
description="OPUS wrapper that supports streaming",
long_description="",
ext_modules=ext_modules,
extras_require={"test": "pytest"},
# Currently, build_ext only provides an optional "highest supported C++
# level" feature, but in the future it may provide more features.
cmdclass={"build_ext": build_ext},
zip_safe=False,
python_requires=">=3.7",
license="MIT",
)