From: Maurice L. <mj...@br...> - 2013-10-29 03:00:26
|
On Monday, October 28, 2013 at 14:44:48 (-0700) Alan W. Irwin writes: > On 2013-10-28 14:23-0700 Alan W. Irwin wrote: > > > The goal here is to make it easy for the user to choose between > > using either version 3 of [incr Tcl_tk] or version 4. In fact, my > > testing of those two cases is being held up because I don't have > > an easy way to switch between them (without a lot of code editing). > > So some quick help on how to make this possible would be appreciated. > > Soon after I sent the above appeal off, I discovered how our build > system set the macro TCL_DIR and how bindings/tcl/tclMain.c used that > macro to help determine the Tcl global variable $dir. Therefore, I > will try something similar to globally set itcl_package_name, etc., > (unless you guys can think of a better method). I think in order to avoid coding in package version dependencies where none should exist, make sure your desired tcl package library directories are all properly positioned in auto_path. E.g. on my Kubuntu 12.04.3 box: $ tclsh8.4 % puts $auto_path /usr/share/tcltk/tcl8.4 /usr/lib /usr/local/lib/tcltk /usr/local/share/tcltk /usr/lib/tcltk /usr/share/tcltk $ tclsh8.5 % puts $auto_path /usr/share/tcltk/tcl8.5 /usr/lib /usr/local/lib/tcltk /usr/local/share/tcltk /usr/lib/tcltk /usr/share/tcltk That first entry enables it to find the right packages. -- Maurice LeBrun |