build on AIX without Tk

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tennill, Dustin

    build on AIX without Tk

    Hello all,

    I am brand new to this list, not sure if this the right place to ask
    this question. I have two AIX 5.1 64-bit boxes and would like to have
    Python on both of them but don't need any of the graphical elements
    (Tk/Tcl/Tkinter). One of the boxes happened to have Tk/Tcl stuff
    installed on it, so I was able to build Python 2.3.2 without a hitch.

    The other box does not have Tk/Tcl installed, and I don't particularly
    need it there. Below is the error message I get when attempting to make:

    building '_tkinter' extension
    ../Modules/ld_so_aix cc_r -bI:Modules/python.exp
    build/temp.aix-5.1-2.3/_tkinter.
    o build/temp.aix-5.1-2.3/tkappinit.o -L/usr/X11R6/lib -L/usr/local/lib
    -ltk8.2 -
    ltcl8.2 -lX11 -o build/lib.aix-5.1-2.3/_tkinter.so
    ld: 0706-006 Cannot find or open library file: -l tk8.2
    ld:open(): A file or directory in the path name does not exist.
    ld: 0706-006 Cannot find or open library file: -l tcl8.2
    ld:open(): A file or directory in the path name does not exist.
    *** WARNING: renaming "_tkinter" since importing it failed: from module
    build/li
    b.aix-5.1-2.3/_tkinter.so No such file or directory
    error: No such file or directory
    make: 1254-004 The error code from the last command is 1.


    Stop.

    Is there any way to build without including tkinter support? (Or am I
    just doing something wrong????)

    Thanks for any help at all . . .

    Dustin Tennill
    Systems Admin
    Eastern Kentucky University
    dustin.tennill@ eku.edu



  • Martin v. Löwis

    #2
    Re: build on AIX without Tk

    "Tennill, Dustin" <Dustin.Tennill @EKU.EDU> writes:
    [color=blue]
    > Is there any way to build without including tkinter support? (Or am I
    > just doing something wrong????)[/color]

    You should disable compilation of _tkinter in setup.py, by putting
    a
    return

    statement into detect_tkinter.

    Regards,
    Martin

    Comment

    Working...