os x and freebsd support (untested)

This commit is contained in:
ingvar1995 2016-07-26 19:09:57 +03:00
parent af5db43248
commit 08ef8294df
3 changed files with 23 additions and 15 deletions

View file

@ -7,10 +7,15 @@ from toxygen.util import program_version
version = program_version + '.0'
MODULES = ['PyAudio']
MODULES = []
if system() == 'Windows':
MODULES.append('PySide')
if system() in ('Windows', 'Darwin'):
MODULES = ['PyAudio', 'PySide']
else:
try:
import pyaudio
except ImportError:
MODULES = ['PyAudio']
class InstallScript(install):
@ -18,11 +23,13 @@ class InstallScript(install):
def run(self):
install.run(self)
OS = system()
if OS == 'Windows':
call(["toxygen", "--configure"])
elif OS == 'Linux':
call(["toxygen", "--clean"])
try:
if system() == 'Windows':
call(["toxygen", "--configure"])
else:
call(["toxygen", "--clean"])
except:
pass
setup(name='Toxygen',
version=version,