File: setup.py

package info (click to toggle)
gns3 0.5-1
  • links: PTS
  • area: non-free
  • in suites: lenny
  • size: 16,708 kB
  • ctags: 1,933
  • sloc: python: 176,083; sh: 907; makefile: 14
file content (66 lines) | stat: -rwxr-xr-x 3,073 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
"""Setup script for the GNS3 packages."""

import sys
sys.path.append('./src')
from distutils.core import setup, Extension

# current version of GNS3
VERSION = '0.5'

if sys.platform.startswith('win'):

    try:
        import py2exe
    except ImportError:
        raise RuntimeError, "Cannot import py2exe"

    # Settings for py2exe, packages values are to tell to py2exe about hidden imports
    setup(windows=[{"script":"gns3",
                                 "icon_resources": [(1, "C:\gns3.ico")]}], zipfile=None,
                options={"py2exe":
                                    {
                                     "includes": ["sip"],
                                     "optimize": 2,
                                     "packages": ["GNS3.Ui.ConfigurationPages.Page_ATMSW",
                                                          "GNS3.Ui.ConfigurationPages.Page_ATMBR",
                                                          "GNS3.Ui.ConfigurationPages.Page_Cloud",
                                                          "GNS3.Ui.ConfigurationPages.Page_ETHSW",
                                                          "GNS3.Ui.ConfigurationPages.Page_FRSW",
                                                          "GNS3.Ui.ConfigurationPages.Page_Hub",
                                                          "GNS3.Ui.ConfigurationPages.Page_IOSRouter",
                                                          "GNS3.Ui.ConfigurationPages.Page_FW",
                                                          "GNS3.Ui.ConfigurationPages.Page_DecorativeNode",
                                                          "GNS3.Ui.ConfigurationPages.Page_PreferencesDynamips",
                                                          "GNS3.Ui.ConfigurationPages.Page_PreferencesGeneral",
                                                          "GNS3.Ui.ConfigurationPages.Page_PreferencesCapture",
                                                          "GNS3.Ui.ConfigurationPages.Page_PreferencesPemu",
                                                     ]
                                        }
                             }
    )

else:

    setup( # Distribution meta-data
            name = "GNS3",
            version = VERSION,
            description = "A graphical network simulator based on Dynamips",
            author = "Jeremy Grossmann, David Ruiz, Romain Lamaison, Aurelien Levesque, Xavier Alt",
            author_email = "contact@gns3.net",
            url = "http://www.gns3.net/",
            scripts = [ 'gns3' ],
            package_dir = { '': 'src' },
            packages = [
                'GNS3',
                'GNS3.Config',
                'GNS3.Globals',
                'GNS3.Dynagen',
                'GNS3.Defaults',
                'GNS3.External',
                'GNS3.Link',
                'GNS3.Node',
                'GNS3.Ui',
                'GNS3.Ui.ConfigurationPages',
                'GNS3.Langs'],
            package_data = { 'GNS3': ['Langs/*.qm', 'Dynagen/configspec'] }
    )