#10208: Remove "warning: Replacing library search directory..." if caused by
symbolic links
-----------------------------+----------------------------------------------
Reporter: jhpalmieri | Owner: GeorgSWeber
Type: defect | Status: needs_review
Priority: minor | Milestone: sage-4.6.1
Component: build | Keywords:
Author: John Palmieri | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Comment(by jhpalmieri):
> Would perhaps look nicer ...
Okay, here's a new patch.
Regarding SAGE_ROOT: note that on my Mac, '/Applications/sage' is a link
pointing to the real directory '/Applications/sage_builds/sage-4.6/'.
{{{
sage: SAGE_ROOT
'/Applications/sage'
}}}
From the command line:
{{{
$ sage -sh
Starting subshell with Sage environment variables set.
Be sure to exit when you are done and do not do anything
with other copies of Sage!
Bypassing shell configuration files ...
SAGE_ROOT=/Applications/sage
}}}
So SAGE_ROOT is not actually "fully dereferenced", if that means what I
think it means. In case it doesn't mean what I think it means:
{{{
sage: os.path.realpath(SAGE_ROOT) == SAGE_ROOT
False
}}}
So I think we need os.path.realpath in both places.
> Unfortunately, on Darwin afaik os.path.realpath() does not necessarily
return a unique name; perhaps this has meanwhile been fixed, but distutils
still implement their own canonicalize_path() (or whatever it is called)
for Darwin.
I don't know about this in general, but using os.path.realpath seems to
fix this particular problem on my OS X machine.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10208#comment:3>
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.