From Newsgroup: comp.lang.tcl
Alan Grunwald <
nospam.nurdglaw@gmail.com> wrote:
I'm posting this as a servoce to the community; if it's already
well-know, I apologise for disturbing you all.
I like to develop my packages with a pgkIndex.tcl and then point
TCLLIBPATH to them for testing. Once they are working, I install them as modules into lib/tcl9/site-tcl[1].
This technique runs into trouble, however, when I'm developing a new
version of a package that has an installed, module version. The problem
is that Tcl appears to find the module first so even if I have
When developing said new version, do you increment the version number
so that the new alpha package is a "newer" version number?
If so, it would seem easier to just tweak your package require line to
require a version above the current system version, which means the
package loader will pass over the system version as "not new enough"
and then find your "alpha" in your local location.
From the 'package' manpage:
package require package ?requirement...?
Note ?requirement...?.
That lets you specifiy a specific version, or a version below some
value, or a version above some value.
I.e. if your installed package is 2.1.3, and your new package is 3.0.0
(both made up) then
package require 3.0.0
or
package require 2.1.4-
should net you your 3.0.0 "alpha" package being loaded.
--- Synchronet 3.22a-Linux NewsLink 1.2