This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
/
setup.py
60 lines (52 loc) · 1.59 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
#!/usr/bin/env python
"""
setup.py file for maixpy3
"""
import sys, platform
from setuptools import setup, find_packages
ext_modules, data_files, py_modules = [], [], []
sysstr = platform.system()
if (sysstr == "Windows"):
from envs.windows import _maix_modules, _maix_data_files, _maix_py_modules
elif (sysstr == "Linux"):
if 'maix_v83x' in sys.argv:
sys.argv.remove('maix_v83x')
from envs.maix_v83x import _maix_modules, _maix_data_files, _maix_py_modules
elif 'maix_r329' in sys.argv:
from envs.maix_r329 import _maix_modules, _maix_data_files, _maix_py_modules
sys.argv.remove('maix_r329')
else:
from envs.linux_desktop import _maix_modules, _maix_data_files, _maix_py_modules
ext_modules.extend(_maix_modules)
data_files.extend(_maix_data_files)
py_modules.extend(_maix_py_modules)
from maix import version
setup(
name='maixpy3',
version=version,
license='MIT',
author='Sipeed',
author_email="support@sipeed.com",
url='https://github.com/sipeed/maixpy3',
description="MaixPy Python3 library",
long_description=open('README.md', 'r', encoding='UTF-8').read(),
long_description_content_type='text/markdown',
install_requires=py_modules,
ext_modules=ext_modules,
packages = find_packages(
exclude=['envs'] # remove from build
), # find __init__.py packages
classifiers=[
'Programming Language :: Python :: 3',
],
extras_require={"test": "pytest"},
entry_points={
"console_scripts": ["maixpy3_rpycs=maix.mjpg:start"]
},
include_package_data=True,
package_data = {
'': ['*.so'],
'': ['*.h'],
},
data_files=data_files,
)