poezio/setup.py

55 lines
2.2 KiB
Python
Raw Normal View History

2011-09-09 16:46:42 +00:00
from distutils.core import setup, Extension
import os, sys
2011-09-09 16:46:42 +00:00
module_poopt = Extension('poezio.poopt',
extra_compile_args=['-Wno-declaration-after-statement'],
sources = ['src/pooptmodule.c'])
2011-09-09 16:46:42 +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'))
setup(name="poezio",
2014-02-22 13:27:31 +00:00
version="0.8.3-dev",
description="A console XMPP client",
long_description=
"""
Poezio is a Free chat client aiming to reproduce the ease of use of most
IRC clients (e.g. weechat, irssi) while using the XMPP network.
""",
2011-09-09 16:46:42 +00:00
ext_modules = [module_poopt],
url = 'http://poezio.eu/',
license = 'zlib',
2011-09-09 16:46:42 +00:00
author = 'Florent Le Coz',
author_email = 'louiz@louiz.org',
maintainer = 'Mathieu Pasquet',
maintainer_email = 'mathieui@mathieui.net',
2014-02-22 13:27:31 +00:00
classifiers = ['Development Status :: 2 - Pre-Alpha',
'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',
],
keywords = ['jabber', 'xmpp', 'client', 'chat', 'im', 'console'],
packages = ['poezio', 'poezio_plugins', 'poezio_plugins.gpg', 'poezio_themes'],
package_dir = {'poezio': 'src', 'poezio_plugins': 'plugins', 'poezio_themes': 'data/themes'},
package_data = {'poezio': ['default_config.cfg']},
scripts = ['scripts/poezio', 'scripts/poezio_gpg_export'],
data_files = [('share/man/man1/', ['data/poezio.1'])],
)
# 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'))