-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
77 lines (68 loc) · 1.86 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
66
67
68
69
70
71
72
73
74
75
76
77
from setuptools import setup, find_packages
import platform
system_type = platform.uname().system
if system_type == 'Linux':
with open('/etc/os-release') as os_release:
lines = os_release.readlines()
d = {}
for line in lines:
k, v = line.strip().split('=')
d[k] = v
dist_name = d['ID']
dist_ver = d['VERSION_ID'].replace('"','')
minor = int(platform.python_version()[2])
if minor < 7:
cp = str(30+minor)
else:
cp = '38'
if dist_name == 'ubuntu':
dist_ver = int(dist_ver.split('.')[0])
if dist_ver >= 14:
dist = 'ubuntu-14.04'
if dist_ver >= 16:
dist = 'ubuntu-16.04'
if dist_ver >= 18:
dist = 'ubuntu-18.04'
if dist_ver >= 20:
dist = 'ubuntu-20.04'
else:
dist = '-'.join([dist_name, dist_ver])
wxpython_url = 'wxPython @ https://extras.wxpython.org/wxPython4/extras/linux/gtk3/'+dist+'/wxPython-4.1.0-cp'+cp+'-cp'+cp+'-linux_x86_64.whl'
else:
wxpython_url = 'wxpython'
#Available wxPython repos:
#centos-7
#debian-8
#debian-9
#fedora-23
#fedora-24
#fedora-26
#fedora-27
#fedora-28
setup(name='sonoUno',
version='3.1.0',
description='Data sonorization tool',
url='http://github.com/sonounoteam/sonouno',
author='Johanna Casado',
author_email='[email protected]',
license='MIT',
package_dir={"": "sonoUno"},
packages= find_packages('sonoUno', exclude=['sample_data']),
scripts=['sonoUno/sonoUno'],
python_requires='>3.5.0',
install_requires=[
'cycler',
'kiwisolver',
'matplotlib',
'numpy',
'pandas',
'Pillow',
'pygame',
'pyparsing',
'python-dateutil',
'pytz',
'six',
'oct2py',
wxpython_url,
],
zip_safe=True)