-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
50 lines (45 loc) · 1.43 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
42
43
44
45
46
47
48
49
50
from setuptools import Extension, find_packages, setup
import numpy
from Cython.Build import cythonize
from Cython.Compiler import Options
Options.warning_errors = True
extensions = [
Extension(
name="_jopus_cython",
sources=["jopus/jopus.pyx"],
libraries=["opusfile", "opus", "ogg", "opusurl"],
library_dirs=["/usr/local/lib"],
include_dirs=[
"/usr/include/opus",
"/usr/local/include/opus",
"/usr/local/include",
numpy.get_include(),
],
language="c++",
)
]
setup(
name="jopus",
version="0.0.2",
packages=find_packages(),
description="Simple Python wrapper for libopusfile",
ext_modules=cythonize(extensions, force=True),
python_requires=">=3.6.0",
author="Dmitry Yutkin",
url='https://github.com/yutkin/jopus',
license="MIT",
zip_safe=True,
install_requires=["numpy"], # Any version of numpy is OK
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Cython",
"Programming Language :: C",
"Programming Language :: C++",
],
)