Menu

#124 Installation free tcllib starkit

open
5
2003-07-14
2003-07-14
No

I was disappointed when I downloaded tcllib.kit from
sourceforge and found the starkit was simply a wrapper
for the install script. I was hoping it would be setup
using the convention of other library starkits like
kitten.kit and
http://mini.net/sdarchive/tcllib.kit where a simple
'source tcllib.kit' and then 'package require
base64'would just work.

This may be as simple as checking for
[starkit::startup] == "sourced" and instead of running
the installer, set auto_path appropriately.

Discussion

  • Brian Theado

    Brian Theado - 2006-01-21

    Logged In: YES
    user_id=6544

    I just tested with tcllib-1.8.kit and modified main.tcl to
    the following:

    package require starkit
    if {[starkit::startup] == "sourced"} {
    lappend auto_path [file join $starkit::topdir modules]
    return
    }
    source [file join [file dirname [info script]] installer.tcl]

    With this main.tcl, 'source tcllib-1.8.kit; package require
    treeql' worked.

     
  • Brian Theado

    Brian Theado - 2006-01-29

    Logged In: YES
    user_id=6544

    Oops. The code I posted in my last comment doesn't work
    when calling "source tcllib-1.8.kit" from within an
    application that is itself a starkit.