setup.py 2.15 KB
Newer Older
louiz’'s avatar
louiz’ committed
1
from distutils.core import setup, Extension
2
import os, sys
louiz’'s avatar
louiz’ committed
3

mathieui's avatar
mathieui committed
4 5
module_poopt = Extension('poezio.poopt',
                    sources = ['src/pooptmodule.c'])
louiz’'s avatar
louiz’ committed
6

7 8 9 10 11 12 13 14

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'))

mathieui's avatar
mathieui committed
15
setup(name="poezio",
mathieui's avatar
mathieui committed
16
       version="0.8",
mathieui's avatar
mathieui committed
17 18 19
       description="A console XMPP client",
       long_description=
       """
20
       Poezio is a Free chat client aiming to reproduce the ease of use of most
mathieui's avatar
mathieui committed
21 22
       IRC clients (e.g. weechat, irssi) while using the XMPP network.
       """,
louiz’'s avatar
louiz’ committed
23
       ext_modules = [module_poopt],
mathieui's avatar
mathieui committed
24 25 26
       url = 'http://poezio.eu/',
       license = 'zlib',

louiz’'s avatar
louiz’ committed
27 28
       author = 'Florent Le Coz',
       author_email = 'louiz@louiz.org',
mathieui's avatar
mathieui committed
29 30 31 32

       maintainer = 'Mathieu Pasquet',
       maintainer_email = 'mathieui@mathieui.net',

mathieui's avatar
mathieui committed
33
       classifiers = ['Development Status :: 5 - Production/Stable',
mathieui's avatar
mathieui committed
34 35 36 37 38 39 40 41
                       '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',
                    ],
42
       keywords = ['jabber', 'xmpp', 'client', 'chat', 'im', 'console'],
43 44
       packages = ['poezio', 'poezio_plugins', 'poezio_plugins.gpg', 'poezio_themes'],
       package_dir = {'poezio': 'src', 'poezio_plugins': 'plugins', 'poezio_themes': 'data/themes'},
45
       package_data = {'poezio': ['default_config.cfg']},
mathieui's avatar
mathieui committed
46
       scripts = ['scripts/poezio'],
47
       data_files = [('share/poezio/themes/', ['data/themes/dark.py']),
mathieui's avatar
mathieui committed
48 49
           ('share/man/man1/', ['data/poezio.1'])],
)
50 51 52 53 54

# 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'))