Installing shortcut scripts

sage.misc.dist.install_scripts(bin_directory=None)

Run this command as install_scripts(bin_directory) to create scripts in the given bin directory that, independently of Sage, run various software components included with Sage: [‘gap’, ‘gp’, ‘singular’, ‘maxima’, ‘M2’, ‘kash’, ‘mwrank’, ‘ipython’, ‘hg’, ‘R’]

This command:

  • verbosely tell you which scripts it adds, and
  • will not overwrite any scripts you already have in the given bin directory.

INPUT:

  • bin_directory - string; the directory into which to put the scripts

OUTPUT: Verbosely prints what it is doing and creates files in bin_directory that are world executable and readable.

Note

You may need to run Sage as root in order to run install_scripts successfully, since the user running Sage will need write permissions on bin_directory.

AUTHORS:

  • William Stein: code / design
  • Arthur Gaer: design

EXAMPLES:

sage: install_scripts(SAGE_TMP)
Checking that Sage has the command 'gap' installed
Created script ...

Previous topic

Multidimensional enumeration

Next topic

Sage Interface to the HG/Mercurial Revision Control System

This Page