#12698: Add a warning not to install packages using the Sage shell
----------------------------------+-----------------------------------------
Reporter: jdemeyer | Owner: leif
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.0
Component: scripts | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Jeroen Demeyer | Merged in:
Dependencies: #11790 | Stopgaps:
----------------------------------+-----------------------------------------
Changes (by {'newvalue': u'Jeroen Demeyer', 'oldvalue': ''}):
* status: new => needs_review
* author: => Jeroen Demeyer
Old description:
> As we found out in
> [http://trac.sagemath.org/sage_trac/ticket/12369#comment:189], you cannot
> use the Sage shell to install Sage packages.
>
> The problem is that `sage-env` has some conditional commands. One of
> these commands is setting `LD_LIBRARY_PATH`. With #12405, only existing
> directories are added to `LD_LIBRARY_PATH`. Upon entering the Sage
> shell, `$SAGE_LOCAL/lib` might not exist yet, so that directory isn't
> added. Since now `SAGE_ENV_SOURCED=1`, the variable `LD_LIBRARY_PATH` is
> not changed anymore. Similarly, `PYTHONHOME` and `PYTHONPATH` are only
> set when Python has been installed.
>
> This ticket is about adding a warning when running `sage --sh`.
New description:
As we found out in
[http://trac.sagemath.org/sage_trac/ticket/12369#comment:189], you cannot
use the Sage shell to install Sage packages.
The problem is that `sage-env` has some conditional commands. One of
these commands is setting `LD_LIBRARY_PATH`. With #12405, only existing
directories are added to `LD_LIBRARY_PATH`. Upon entering the Sage shell,
`$SAGE_LOCAL/lib` might not exist yet, so that directory isn't added.
Since now `SAGE_ENV_SOURCED=1`, the variable `LD_LIBRARY_PATH` is not
changed anymore. Similarly, `PYTHONHOME` and `PYTHONPATH` are only set
when Python has been installed.
This ticket is about adding a warning when running `sage --sh`. After the
patch:
{{{
$ ./sage --sh
Starting subshell with Sage environment variables set. Don't forget
to exit when you are done. Beware:
* Do not do anything with other copies of Sage on your system.
* Do not use this for installing Sage packages using "sage -i" or for
running "make". These should be done outside the Sage shell.
Bypassing shell configuration files...
Note: SAGE_ROOT=/usr/local/src/sage-5.0.beta8
(sage-sh) jdemeyer@arcanis:sage-5.0.beta8$
}}}
'''Apply''' [attachment:12698_sh_beware.patch​] to SAGE_ROOT.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12698#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.