forked from PyAV-Org/pyav-ffmpeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
32 lines (30 loc) · 783 Bytes
/
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
import setuptools
import sys
if sys.platform == "win32":
include_dirs = ["C:\\cibw\\vendor\\include"]
library_dirs = ["C:\\cibw\\vendor\\lib"]
else:
include_dirs = ["/tmp/vendor/include"]
library_dirs = ["/tmp/vendor/lib"]
setuptools.setup(
name="dummy",
package_dir={"": "src"},
packages=["dummy"],
ext_modules=[
setuptools.Extension(
"dummy.binding",
include_dirs=include_dirs,
library_dirs=library_dirs,
libraries=[
"avformat",
"avcodec",
"avdevice",
"avutil",
"avfilter",
"swscale",
"swresample",
],
sources=["src/dummy/binding.c"],
),
],
)