-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (35 loc) · 1.08 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
from setuptools import setup, find_packages
import io
def is_coral():
try:
with io.open('/sys/firmware/devicetree/base/model', 'r') as m:
line = m.read().lower()
if 'phanbell' in line or "coral" in line: return True
except Exception: pass
return False
requirements_list = ['wheel',
'pyEDFLib',
'numpy',
'portilooplot',
'ipywidgets',
'python-periphery',
'scipy',
'matplotlib']
if is_coral():
requirements_list += ['spidev',
'pylsl-coral',
'pyalsaaudio==0.9.2',
'python-socketio==5.9',
'nicegui']
else:
requirements_list += ['gradio',
'tensorflow',
'pyxdf',
'wonambi']
setup(
name='portiloop',
version='0.0.1',
packages=[package for package in find_packages()],
description='Portiloop software library',
install_requires=requirements_list,
)