2011-09-09 16:46:42 +00:00
|
|
|
from distutils.core import setup, Extension
|
2013-05-29 13:32:25 +00:00
|
|
|
import os, sys
|
2011-09-09 16:46:42 +00:00
|
|
|
|
2013-05-26 18:07:12 +00:00
|
|
|
module_poopt = Extension('poezio.poopt',
|
|
|
|
sources = ['src/pooptmodule.c'])
|
2011-09-09 16:46:42 +00:00
|
|
|
|
2013-05-29 13:32:25 +00:00
|
|
|
|
|
|
|
current_dir = os.path.dirname(__file__)
|
|
|
|
|
|
|
|
# Create a link to the config file (for packaging purposes)
|
|
|
|
if not os.path.exists(os.path.join(current_dir, 'src', 'default_config.cfg')):
|
|
|
|
os.link(os.path.join(current_dir, 'data', 'default_config.cfg'),
|
|
|
|
os.path.join(current_dir, 'src', 'default_config.cfg'))
|
|
|
|
|
2013-05-26 18:07:12 +00:00
|
|
|
setup(name="poezio",
|
|
|
|
version="0.8-dev",
|
|
|
|
description="A console XMPP client",
|
|
|
|
long_description=
|
|
|
|
"""
|
2013-05-29 13:32:25 +00:00
|
|
|
Poezio is a Free chat client aiming to reproduce the ease of use of most
|
2013-05-26 18:07:12 +00:00
|
|
|
IRC clients (e.g. weechat, irssi) while using the XMPP network.
|
|
|
|
""",
|
2011-09-09 16:46:42 +00:00
|
|
|
ext_modules = [module_poopt],
|
2013-05-26 18:07:12 +00:00
|
|
|
url = 'http://poezio.eu/',
|
|
|
|
license = 'zlib',
|
|
|
|
|
2011-09-09 16:46:42 +00:00
|
|
|
author = 'Florent Le Coz',
|
|
|
|
author_email = 'louiz@louiz.org',
|
2013-05-26 18:07:12 +00:00
|
|
|
|
|
|
|
maintainer = 'Mathieu Pasquet',
|
|
|
|
maintainer_email = 'mathieui@mathieui.net',
|
|
|
|
|
|
|
|
classifiers = ['Development Status :: 4 - Beta',
|
|
|
|
'Environment :: Console :: Curses',
|
|
|
|
'Intended Audience :: End Users/Desktop',
|
|
|
|
'License :: OSI Approved :: zlib/libpng License',
|
|
|
|
'Natural Language :: English',
|
|
|
|
'Operating System :: Unix',
|
|
|
|
'Topic :: Communications :: Chat',
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
],
|
2013-05-29 13:32:25 +00:00
|
|
|
keywords = ['jabber', 'xmpp', 'client', 'chat', 'im', 'console'],
|
2013-05-26 18:07:12 +00:00
|
|
|
packages = ['poezio', 'poezio_plugins'],
|
|
|
|
package_dir = {'poezio': 'src', 'poezio_plugins': 'plugins'},
|
2013-05-29 13:32:25 +00:00
|
|
|
package_data = {'poezio': ['default_config.cfg']},
|
2013-05-26 18:07:12 +00:00
|
|
|
scripts = ['scripts/poezio'],
|
2013-05-29 13:32:25 +00:00
|
|
|
data_files = [('share/poezio/themes/', ['data/themes/dark.py']),
|
2013-05-26 18:07:12 +00:00
|
|
|
('share/man/man1/', ['data/poezio.1'])],
|
|
|
|
)
|
2013-05-29 13:32:25 +00:00
|
|
|
|
|
|
|
# Remove the link afterwards
|
|
|
|
if os.path.exists(os.path.join(current_dir, 'src', 'default_config.cfg')):
|
|
|
|
os.unlink(os.path.join(current_dir, 'src', 'default_config.cfg'))
|
|
|
|
|