setup.py and fixes
This commit is contained in:
parent
88e9317a41
commit
1c788a73c6
14 changed files with 122 additions and 28 deletions
43
setup.py
Normal file
43
setup.py
Normal file
|
@ -0,0 +1,43 @@
|
|||
from setuptools import setup
|
||||
from setuptools.command.install import install
|
||||
from platform import system
|
||||
from ctypes import CDLL
|
||||
|
||||
|
||||
class DownloadScript(install):
|
||||
"""Install all required libs"""
|
||||
def run(self):
|
||||
OS = system()
|
||||
if OS == 'Linux': # install libtoxcore
|
||||
try:
|
||||
libtoxcore = CDLL('libtoxcore.so')
|
||||
libtoxencryptsave = CDLL('libtoxencryptsave.so')
|
||||
libtoxav = CDLL('libtoxav.so')
|
||||
except: # toxcore is not installed
|
||||
pass
|
||||
install.run(self)
|
||||
|
||||
setup(name='Toxygen',
|
||||
version='0.2.1.50',
|
||||
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',
|
||||
package_dir={'': 'src'},
|
||||
packages=['', 'plugins', 'styles'],
|
||||
install_requires=['PyAudio', 'PySide', 'PySocks'],
|
||||
include_package_data=True,
|
||||
classifiers=[
|
||||
'Programming Language :: Python :: 3 :: Only',
|
||||
'Programming Language :: Python :: 3.3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
],
|
||||
entry_points={
|
||||
'console_scripts': ['toxygen=main:main'],
|
||||
},
|
||||
cmdclass={
|
||||
'install': DownloadScript,
|
||||
},
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue