forked from AgoraIO-Community/Agora-Python-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
69 lines (61 loc) · 3.14 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
from setuptools import setup, Extension
import os
import platform
extra_link_args = []
libraries = []
library_dirs = []
extra_compile_args = []
if platform.system() == 'Darwin':
extra_link_args = ['-F.', '-Wl,-rpath,@loader_path']
os.environ['LDFLAGS'] = '-framework AgoraRtcKit'
extra_compile_args = ['-std=c++14', '-stdlib=libc++']
elif platform.system() == 'Windows':
libraries = ['agora_rtc_sdk']
library_dirs = ['.']
extra_compile_args = ['/std:c++14', '-DNOMINMAX']
with open("publish_dscp.md", "r") as fh:
long_description = fh.read()
agorartc_module = Extension('_agorartc',
sources=[
'AgoraRtc_wrap.cxx',
'src/AgoraRtc.cpp',
'src/cross-platform-sdk-module/rtc/rtcEngine/RtcEngineBridge.cpp',
'src/cross-platform-sdk-module/rtc/test/LogJson.cpp',
'src/cross-platform-sdk-module/rtc/test/ApiTester.cpp',
'src/cross-platform-sdk-module/rtc/test/EventTester.cpp',
'src/cross-platform-sdk-module/rtc/rtcChannel/RtcChannelBridge.cpp',
'src/cross-platform-sdk-module/rtc/observer/metadata/metadata_observer.cpp',
'src/cross-platform-sdk-module/rtc/deviceManager/audioDeviceManager/AudioPlaybackDeviceManager.cpp',
'src/cross-platform-sdk-module/rtc/deviceManager/audioDeviceManager/AudioRecordingDeviceManager.cpp',
'src/cross-platform-sdk-module/rtc/deviceManager/videoDeviceManager/VideoDeviceManager.cpp',
'src/cross-platform-sdk-module/rtc/callback/rtcChannnelCallback/RtcChannelEventHandler.cpp',
'src/cross-platform-sdk-module/rtc/callback/rtcEngineCallback/RtcEngineEventHandler.cpp'],
include_dirs = ['src/cross-platform-sdk-module', 'src'],
extra_link_args = extra_link_args,
libraries = libraries,
library_dirs = library_dirs,
extra_compile_args = extra_compile_args
)
setup (name = 'agora-python-sdk',
version = '3.1.2.10',
author = "Agora.io",
description = "Agora RTC Python SDK",
long_description = long_description,
long_description_content_type = "text/markdown",
url="https://github.com/AgoraIO-Community/Agora-Python-SDK",
ext_modules = [agorartc_module],
py_modules = ["agorartc"],
classifiers=[
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
"Topic :: Multimedia :: Video",
"Topic :: Multimedia :: Video :: Capture",
"Programming Language :: C++",
],
python_requires='>=3.6',
)