-
Notifications
You must be signed in to change notification settings - Fork 43
/
setup.py
43 lines (36 loc) · 1.23 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
import sys, platform
from os import path
from setuptools import setup, find_packages
package_path = '.'
if sys.platform == "darwin": # mac
if platform.machine() == 'arm64':
package_path = path.join(package_path, "mac", "aarch64")
else:
package_path = path.join(package_path, "mac", "x86-64")
elif not sys.platform.startswith('win'): # linux
package_path = path.join(package_path, "linux", "x86-64")
elif sys.maxsize > 2 ** 32: # 64 bit windows
package_path = path.join(package_path, "windows", "win64")
else: # 32 bit windows
package_path = path.join(package_path, "windows", "win32")
if sys.version[0] == '3':
package_path = path.join(package_path, 'python3')
else:
package_path = path.join(package_path, 'python2.7')
setup(
name="pyacrcloud",
version="1.0.1",
packages=find_packages(package_path),
package_dir={"": package_path},
package_data={
'': ['*.txt', '*.rst'],
'acrcloud': ['*.so', '*.pyd'],
},
author="ACRCloud",
author_email="[email protected]",
description='Python wrapper for acrcloud libraries',
license='MIT',
keywords="ACRCLoud Python SDK",
url='https://github.com/acrcloud/acrcloud_sdk_python',
zip_safe=False,
)