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

Comment (by leif):

 Or, how does `make INST="${SAGE_SPKG_INST:-installed}"` behave?  (I think
 this would be better.)

 [[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:22>
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