#14226: add SAGE_SPKG_INST environment variable
---------------------------------------------+------------------------------
       Reporter:  rohana                     |         Owner:  jason            
              
           Type:  enhancement                |        Status:  needs_review     
              
       Priority:  major                      |     Milestone:  sage-5.9         
              
      Component:  misc                       |    Resolution:                   
              
       Keywords:  installed spkgs directory  |   Work issues:                   
              
Report Upstream:  N/A                        |     Reviewers:  Robert Bradshaw, 
Leif Leonhardy
        Authors:  R. Andrew Ohana            |     Merged in:                   
              
   Dependencies:  #13432                     |      Stopgaps:                   
              
---------------------------------------------+------------------------------

Comment (by leif):

 Replying to [comment:22 leif]:
 > Or, how does `make INST="${SAGE_SPKG_INST:-installed}"` behave?  (I
 think this would be better.)

 After deep thinking...

 {{{
 #!sh
 make INST="`echo ${SAGE_SPKG_INST:-installed} | sed 's/ /\\\\ /g'`"
 }}}
 (without changes to `deps`).


 I think this should solve all issues.
 >
 > [[BR]]
 >
 > Replying to [comment:21 rohana]:
 > > I don't mind if it is relative, but I don't want to be fixed to the
 location `spkg/installed`.
 >
 > I meant just in the `Makefile`.  (`$SAGE_SPKG_INST` could still be
 absolute.)
 >
 > > The problem with a relative path is that then there are issues if
 using `$SAGE_SPKG_INST` from some other directory (which can and does
 happen)
 >
 > See above.
 >
 > > `sage-make_relative` isn't available upon the first usage of `deps`.
 >
 > I was just kidding.
 >
 > > Making a symbolic link would work in the case that `$(INST) !=
 $SAGE_SPKG_INST`.
 >
 > Well, just change `INST = installed` to something else (`INST =
 this_is_always_the_relative_path_to_a_symlink`), and let it point to
 either `installed` or `$SAGE_SPKG_INST` (where the latter is absolute).
 Not sure about performance issues.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14226#comment:24>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to