help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to make "pkg load" automatically load dependencies


From: Andrew Janke
Subject: Re: how to make "pkg load" automatically load dependencies
Date: Thu, 10 Oct 2019 23:14:53 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0



On 10/11/19 2:10 AM, Mike Miller wrote:
On Thu, Oct 10, 2019 at 22:23:18 -0700, Andrew Janke wrote:
I don't think the current Octave pkg command supports either of these. The
package specification file format supports defining dependencies, and
they're validated, but they're not automatically loaded or installed.

Not completely. It's correct that the 'pkg' command does not *install*
dependencies, but it does *load* them once they are installed.

For example,

     >> pkg list
     Package Name  | Version | Installation directory
     --------------+---------+-----------------------
          control  |   3.2.0 | /home/user/octave/control-3.2.0
           signal  |   1.4.1 | /home/user/octave/signal-1.4.1
     >> pkg load signal
     >> pkg list
     Package Name  | Version | Installation directory
     --------------+---------+-----------------------
          control *|   3.2.0 | /home/user/octave/control-3.2.0
           signal *|   1.4.1 | /home/user/octave/signal-1.4.1

To the original question, all that's needed is to include the Depends
field in the DESCRIPTION file. Refer to
https://www.octave.org/doc/interpreter/The-DESCRIPTION-File.html for the
full details.


My bad, sorry!

Andrew



reply via email to

[Prev in Thread] Current Thread [Next in Thread]