[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

Ned Deily report at bugs.python.org
Wed Jun 3 03:57:59 CEST 2009


Ned Deily <nad at acm.org> added the comment:

That seems to work.  However, while testing that, I found another, minor 
problem in that same area.  In Makefile.pre.in bininstall target just 
before the lines you cite, there is also this added in r71935:

-rm -f $(DESTDIR)$(BINDIR)/python3-config
(cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python3-
config)

Prior to that, though, the Mac Makefile target install_versionedtools is 
mucking in the same area:

if [ ! -h "$(DESTDIR)$(prefix)/bin/python3-config" ]; then \
  mv "$(DESTDIR)$(prefix)/bin/python3-config" 
"$(DESTDIR)$(prefix)/bin/python$(VERSION)-config" ;\
  ln -sf "python$(VERSION)-config" "$(DESTDIR)$(prefix)/bin/python3-
config" ; \
fi

and, in fact, the mv fails with an error because (1) the python3-config 
hasn't been created yet and (2) the test is incorrect: ! -h is also true 
if the file doesn't exist.  With the code in bininstall, I think these 
lines can be safely removed from install_versionedtools.

----------
status: pending -> open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6170>
_______________________________________


More information about the Python-bugs-list mailing list