File: setup.py

package info (click to toggle)
elisa-plugins-good 0.3.5-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,236 kB
  • ctags: 1,434
  • sloc: python: 8,250; xml: 231; sql: 161; makefile: 7
file content (33 lines) | stat: -rw-r--r-- 1,020 bytes parent folder | download
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
import sys, os

setup_path = os.path.abspath(__file__)
bundle_path= os.path.dirname(setup_path)
bundles_path = os.path.dirname(bundle_path)
plugins_path = os.path.dirname(bundles_path)
trunk_path = os.path.dirname(plugins_path)

try:
    from elisa.core.utils.dist import elisa_setup
except ImportError:
    core_path = os.path.join(trunk_path, 'elisa-core')
    sys.path.insert(0, core_path)
    if 'elisa' in sys.modules:
        del sys.modules['elisa']
    from elisa.core.utils.dist import elisa_setup

from elisa.core import __version__

name = 'elisa-plugins-good'
description = "Elisa plugins good bundle"
long_description = description
license = "GPL3"
version = __version__
author = "Elisa Team"
author_email = "contact@fluendo.com"

plugins_dir = os.path.join(os.getcwd(), 'elisa-plugins')
if not os.path.isdir(plugins_dir):
    plugins_dir = os.path.join(trunk_path, 'elisa-plugins')

elisa_setup(name, description, long_description, version, license,
            author, author_email, 'elisa', plugins_dir)