setup.py fix for packages

This commit is contained in:
ingvar1995 2017-07-09 13:17:51 +03:00
parent fbe0b1f819
commit b6f5123495

View file

@ -8,10 +8,23 @@ import sys
version = program_version + '.0'
MODULES = ['PyQt5', 'PyAudio', 'numpy']
if system() == 'Windows':
MODULES.append('opencv-python')
MODULES = ['PyQt5', 'PyAudio', 'numpy', 'opencv-python']
else:
MODULES = []
try:
import pyaudio
except ImportError:
MODULES.append('PyAudio')
try:
import PyQt5
except ImportError:
MODULES.append('PyQt5')
try:
import numpy
except ImportError:
MODULES.append('numpy')
class InstallScript(install):