File size: 1,053 Bytes
de0bff3
35af352
 
 
 
 
 
086b12f
 
35af352
 
 
 
476bded
35af352
 
 
 
 
 
 
 
086b12f
35af352
 
 
 
 
 
 
 
de0bff3
 
 
 
963de37
2e1823f
35af352
de0bff3
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
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']
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,
)