Open apjanke opened 4 years ago
Only during the install step, pkg
builds a cache of all docstrings. Looks like it uses genpath
on the entire package directory, so it will find all m files in all subdirectories.
https://github.com/mtmiller/octave/blob/master/scripts/pkg/private/install.m#L815
Aha. Thanks. I'll look in to that and maybe file an upstream bug report.
I support fixing this in pkg
(or in pkj
:wink:). I think your runtime conditional to set the load path is valid and should be supported, even if other packages currently do this kind of thing at build time.
I reported Octave #57826.