aboutsummaryrefslogtreecommitdiff
blob: 95b715e290286b695a9e688bce4a6afb43e28147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
    setup.py
    ~~~~~~~~

    installation script

    :copyright: (c) 2013-2015 by Jauhien Piatlicki
    :license: GPL-2, see LICENSE for more details.
"""

import os

from distutils.core import setup

SELECTABLE = {'bson': 'file_bson'}

use_defaults = ' '.join(list(SELECTABLE))
USE = os.environ.get("USE", use_defaults).split()

optional_modules = []
for mod in SELECTABLE:
    if mod in USE:
        optional_modules.append('g_sorcery.%s' % SELECTABLE[mod])

setup(name          = 'g-sorcery',
      version       = '0.2',
      description   = 'framework for automated ebuild generators',
      author        = 'Jauhien Piatlicki',
      author_email  = 'jauhien@gentoo.org',
      packages      = ['g_sorcery', 'gs_db_tool'] + optional_modules,
      package_data  = {'g_sorcery': ['data/*']},
      scripts       = ['bin/g-sorcery', 'bin/gs-db-tool'],
      data_files    = [('/etc/g-sorcery/', ['g-sorcery.cfg'])],
      license       = 'GPL-2',
      )