On Friday, September 16, 2022 at 12:29:39 PM UTC+2, Harald Oehlmann wrote:
> Dear TCL team,
not part of the team, but trying to help
> is there any way to get the TCLLIB release version by an API?
> It would be great to get it by "package require tcllib" ;-).
Afaik, the version of the package (see .spec file in the source) is not copied to the install target.
At first glance, you are left with two options:
* get the versions of all packages or of all used packages to create a signature of your deliverable
* get the version of the installed package (package manager, or package itself)
> I currently use "package require cmdline" to get the TCLLib version.
> This resulted in "1.5". There is no TCLLIB release 1.5, only 1.4 or 1.6.
I am not aware of any package that has its version tied to the overall version; but that would probably a way to resolve your request, i.e. add an empty package tcllib.
 you don't want to load all packages upon "package require tcllib", do you? ;-)