-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
52 lines (46 loc) · 1.64 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
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
requires = ['PyQt5',
'sip',
'numpy==1.18.5',
'pyqtgraph',
'pyserial',
'matplotlib',
'qimage2ndarray',
'pydub',
'ffmpeg',
'pyautogui',
'pandas',
'tensorflow',
'sklearn'
]
setuptools.setup(
name="mGesf", # Replace with your own username
version="0.0.2",
author="ApocalyVec",
author_email="s-vector.lee@hotmail.com",
description="This package is a micro-gesture application that took on a sensor fusion approach/",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ApocalyVec/mGesf",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
install_requires=requires)
import os
from sys import platform
if platform == "linux" or platform == "linux2":
# linux
os.chdir('utils/XeThru_utils/xeX4Thru_software/ModuleConnector/ModuleConnector-unix-1/python35-x86_64-linux-gnu')
elif platform == "darwin":
# OS X # TODO this is throwing segfault on OS X
os.chdir('utils/XeThru_utils/xeX4Thru_software/ModuleConnector/ModuleConnector-osx-1/python37-x86_64-apple-darwin')
elif platform == "win32":
# Windows...
os.chdir('utils/XeThru_utils/xeX4Thru_software/ModuleConnector/ModuleConnector-win32_win64-1/python36-win64')
import subprocess
subprocess.call(['python', 'setup.py', 'install'])