Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 298850 | Differences between
and this patch

Collapse All | Expand All

(-)a/setup.py (-3 / +7 lines)
Lines 13-21 Link Here
13
    url = "http://www.home.unix-ag.org/arne/jack/",
13
    url = "http://www.home.unix-ag.org/arne/jack/",
14
14
15
    # Description of the modules and packages in the distribution
15
    # Description of the modules and packages in the distribution
16
    ext_modules = [ Extension('jack_cursesmodule',
16
    # we dont need jack_cursemodule any more because its included in python 
17
    ['cursesmodule/jack_cursesmodule.c'], libraries=["ncurses"],
17
    # since release 2.0
18
    extra_compile_args=["-Wno-strict-prototypes"]) ],
18
    # see http://docs.python.org/whatsnew/2.0.html
19
    #
20
    # ext_modules = [ Extension('jack_cursesmodule',
21
    # ['cursesmodule/jack_cursesmodule.c'], libraries=["ncurses"],
22
    # extra_compile_args=["-Wno-strict-prototypes"]) ],
19
23
20
    py_modules = [ 'jack_CDTime', 'jack_TOC', 'jack_TOCentry', 'jack_argv',
24
    py_modules = [ 'jack_CDTime', 'jack_TOC', 'jack_TOCentry', 'jack_argv',
21
    'jack_checkopts', 'jack_children', 'jack_config', 'jack_constants',
25
    'jack_checkopts', 'jack_children', 'jack_config', 'jack_constants',
(-)a/jack_t_curses.py (-4 / +7 lines)
Lines 35-45 Link Here
35
try:
35
try:
36
    from jack_curses import endwin, resizeterm, A_REVERSE, newwin, newpad, initscr, noecho, cbreak, echo, nocbreak
36
    from jack_curses import endwin, resizeterm, A_REVERSE, newwin, newpad, initscr, noecho, cbreak, echo, nocbreak
37
except ImportError:
37
except ImportError:
38
    warning("jack_curses module not found, trying normal curses...")
38
    # we dont need jack_cursemodule any more because its included in python 
39
    # since release 2.0
40
    # see http://docs.python.org/whatsnew/2.0.html
41
    info("jack_curses module not found, using normal curses...")
39
    try:
42
    try:
40
        from curses import endwin, A_REVERSE, newwin, newpad, initscr, noecho, cbreak, echo, nocbreak
43
        from curses import endwin, resizeterm, A_REVERSE, newwin, newpad, initscr, noecho, cbreak, echo, nocbreak
41
        def resizeterm(y, x):
44
        # def resizeterm(y, x):
42
            pass
45
        #     pass
43
    except ImportError:
46
    except ImportError:
44
        print "curses module not found or too old, please install it (see README)"
47
        print "curses module not found or too old, please install it (see README)"
45
48

Return to bug 298850