toxygen/setup.py

51 lines
1.4 KiB
Python
Raw Normal View History

2016-07-05 18:43:51 +00:00
from setuptools import setup
from setuptools.command.install import install
from platform import system
2016-07-06 13:25:04 +00:00
from subprocess import call
from toxygen.util import program_version
2016-07-05 18:43:51 +00:00
2016-07-06 13:25:04 +00:00
version = program_version + '.0'
MODULES = ['PyAudio', 'PySocks']
if system() == 'Windows':
MODULES.append('PySide')
class InstallScript(install):
2016-07-05 18:43:51 +00:00
"""Install all required libs"""
2016-07-06 13:25:04 +00:00
2016-07-05 18:43:51 +00:00
def run(self):
install.run(self)
2016-07-06 13:25:04 +00:00
OS = system()
if OS == 'Windows':
call(["toxygen", "--configure"])
elif OS == 'Linux':
call(["toxygen", "--clean"])
2016-07-05 18:43:51 +00:00
setup(name='Toxygen',
2016-07-06 13:25:04 +00:00
version=version,
2016-07-05 18:43:51 +00:00
description='Toxygen - Tox client',
long_description='Toxygen is powerful Tox client written in Python3',
url='https://github.com/xveduk/toxygen/',
keywords='toxygen tox',
author='Ingvar',
license='GPL3',
2016-07-06 13:25:04 +00:00
packages=['toxygen', 'toxygen.plugins', 'toxygen.styles'],
install_requires=MODULES,
2016-07-05 18:43:51 +00:00
include_package_data=True,
classifiers=[
'Programming Language :: Python :: 3 :: Only',
2016-07-06 13:25:04 +00:00
'Programming Language :: Python :: 3.2',
2016-07-05 18:43:51 +00:00
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
entry_points={
2016-07-06 13:25:04 +00:00
'console_scripts': ['toxygen=toxygen.main:main'],
2016-07-05 18:43:51 +00:00
},
cmdclass={
2016-07-06 13:25:04 +00:00
'install': InstallScript,
2016-07-05 18:43:51 +00:00
},
)