#10192: SageNB fails to install when SAGE_PATH is set to '.'
------------------------------+---------------------------------------------
   Reporter:  hivert          |          Owner:  jason, was                     
                                                        
       Type:  defect          |         Status:  needs_review                   
                                                        
   Priority:  major           |      Milestone:  sage-4.7.2                     
                                                        
  Component:  build           |       Keywords:  notebook installation dot 
PYTHONPATH easy_install easy-install pth sage-spkg setuptools
Work_issues:                  |       Upstream:  N/A                            
                                                        
   Reviewer:  Florent Hivert  |         Author:  Leif Leonhardy                 
                                                        
     Merged:                  |   Dependencies:                                 
                                                        
------------------------------+---------------------------------------------

Comment(by ppurka):

 Please check
 [attachment:trac_10192-remove_dot_and_more_from_PYTHONPATH_in_sage.spkg.patch]
 against other platforms. I have checked it on Linux x86_64 and it cleans
 up nasty examples like the one mentioned earlier
 `".::./././//./://bingo//:baz:::://///:./.:."`. (Indented the paste below
 :))
 {{{
  ~ $ AAAA=".::./././//./://bingo//:baz:::://///:./.:."
  ~ $ new_pp=""
  ~ $ IFS=":"
  ~ $ for x in $AAAA; do
   if [ -n "$x" -a -n "$(echo "$x" | sed -e 's/[\.\/]\+//g')" ]; then
     if [ -z "$new_pp" ]; then
       new_pp="$x"
     else
       new_pp="${new_pp}:$x"
     fi
   fi
 done
  ~ $ echo "$new_pp"
 //bingo//:baz
 }}}
 This is against 4.7.0. I will later try to upload it rebased against
 4.7.2.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10192#comment:12>
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.

Reply via email to