Skip to content

Prompting about experimental packages: sage -i -y, sage -i -n #21082

@mkoeppe

Description

@mkoeppe

This is a follow-up on:

This ticket adds options -y ("yes"), -n ("no") that get rid of user prompting for non-interactive installs of experimental/old-style packages.

Also if there is no controlling terminal, then -n is implied for experimental packages and -y is implied for old-style optional packages. (On Linux, this situation can be tested by using setsid (for Mac OS X: see here) or by using ssh without the -t option.)

The ticket changes the exit status from 0 to 1 if the user declines to install the package. Previously, the system would record a successful installation in $SAGE_LOCAL/var/lib/sage/installed/.

Moreover, for experimental packages, sage -info no longer warns/prompts.
Instead, the package type is simply printed. None of our packages is so dangerous that merely viewing the SPKG.txt will cause harm.

CC: @jdemeyer @embray @vbraun @kcrisman @dimpase @videlec @novoselt @nexttime

Component: build

Author: Erik Bray, Matthias Koeppe

Branch: 18ac798

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/21082

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions