setup.py 2.19 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
module_poopt = Extension('poezio.poopt',
mathieui's avatar
mathieui committed
5
                    extra_compile_args=['-Wno-declaration-after-statement'],
mathieui's avatar
mathieui committed
6
                    sources = ['src/pooptmodule.c'])
louiz’'s avatar
louiz’ committed
7

8 9 10 11 12 13 14 15

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

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

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

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