#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 leif):
Replying to [comment:3 jhpalmieri]:
> Regarding SAGE_ROOT: note that on my Mac, '/Applications/sage' is a link
pointing to the real directory '/Applications/sage_builds/sage-4.6/'.
> So SAGE_ROOT is not actually "fully dereferenced", if that means 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.
Ok, then (at least your) MacOS X lacks the `readlink` and `realpath`
commands, or you've set `SAGE_ROOT` manually.
In general, I think it would be better to also assign
`os.path.realpath(...)` to the Python variables `SAGE_ROOT`, `SAGE_LOCAL`
etc. at the top of `setup.py` (line 32 ff.), which would also remove some
redundant slashs.
> > 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.
Me either. Perhaps just history (when distutils were not part of the
Python distribution), otherwise wouldn't make much sense to have distutils
use their own version, leaving the standard Python function limited.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10208#comment:4>
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.