This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: installation atop 2.2 fails
Type: Stage:
Components: Installation Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: jlt63 Nosy List: david_abrahams, jlt63, loewis, nnorwitz, tim.peters
Priority: normal Keywords:

Created on 2002-04-12 22:55 by david_abrahams, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (7)
msg10298 - (view) Author: David Abrahams (david_abrahams) Date: 2002-04-12 22:55
Installing Python 2.2.1 atop Python 2.2 on cygwin 
fails at the last stage when it tries to create a 
link from /usr/bin/python.exe -> /usr/bin/python-
2.2.exe. Since the link already exists, installation 
stops.
msg10299 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2002-04-12 23:09
Logged In: YES 
user_id=31435

Change Group to Platform-specific.
msg10300 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-04-13 23:13
Logged In: YES 
user_id=21627

Can you report the precise sequence of commands being 
executed? Normally, it should be 
 
if test -f /usr/local/bin/python; \ 
then rm -f /usr/local/bin/python; \ 
else true; \ 
fi 
(cd /usr/local/bin; ln python2.2 python) 
 
If this is the ln that fails, it is not clear why the 
target already exists: the rm command is supposed to 
delete it. 
msg10301 - (view) Author: David Abrahams (david_abrahams) Date: 2002-04-15 00:31
Logged In: YES 
user_id=52572

No, it's not that ln. Read my report again. It's 
linking /usr/bin/python -> /usr/bin/python2.2.exe. 
No "local" in the path. Since I've already installed 
2.2.1, I can't reproduce the behavior anymore without 
building myself a fresh 2.2... but it happened twice, once 
on a pydebug installation of 2.2.1 over 2.2 and once on a 
regular build.


-Dave
msg10302 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-04-15 21:22
Logged In: YES 
user_id=21627

The ln I quoted was actually from a Linux 'make install'; I
cannot reproduce the cygwin install since I don't have
cygwin - but it *should* only differ in the BINDIR. Since
there is only one ln invocation in the makefile, it is hard
to believe that 'make install' tries to create a link in the
reverse direction.
msg10303 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2002-11-03 03:23
Logged In: YES 
user_id=33168

David, Jason, is this still a problem?  Can this be closed?
msg10304 - (view) Author: Jason Tishler (jlt63) * (Python triager) Date: 2002-11-04 18:02
Logged In: YES 
user_id=86216

AFAICT, this is not (or longer) a problem because Python's
Makefile removes the symlink if it exists from a previous
make install. Hence, I'm closing this bug report. Feel free
to reopen if you have evidence indicating that this problem
stills exists.

See the following for the details:

$ make prefix=/tmp/python/usr bininstall
/usr/bin/install -c 
python.exe /tmp/python/usr/bin/python2.2.exe
if test -f libpython2.2.so; then \
        /usr/bin/install -c -m 644 
libpython2.2.so /tmp/python/usr/lib; \
else    true; \
fi
if test -f "libpython2.2.dll"; then \
        /usr/bin/install -c -m 555 
libpython2.2.dll /tmp/python/usr/bin; \
else    true; \
fi
if test -f /tmp/python/usr/bin/python.exe; \
then rm -f /tmp/python/usr/bin/python.exe; \
else true; \
fi
(cd /tmp/python/usr/bin; ln -s python2.2.exe python.exe)

$ ls -l --full-time /tmp/python/usr/bin
total 2561
-r-xr-xr-x    1 jt       Domain U  2580813 Mon Nov 04 12:55:35 
2002 libpython2.2.dll
lrwxrwxrwx    1 jt       Domain U      106 Mon Nov 04 12:55:35 
2002 python.exe -> python2.2.exe
-rwxr-xr-x    1 jt       Domain U    40960 Mon Nov 04 12:55:35 
2002 python2.2.exe

$ make prefix=/tmp/python/usr bininstall
/usr/bin/install -c 
python.exe /tmp/python/usr/bin/python2.2.exe
if test -f libpython2.2.so; then \
        /usr/bin/install -c -m 644 
libpython2.2.so /tmp/python/usr/lib; \
else    true; \
fi
if test -f "libpython2.2.dll"; then \
        /usr/bin/install -c -m 555 
libpython2.2.dll /tmp/python/usr/bin; \
else    true; \
fi
if test -f /tmp/python/usr/bin/python.exe; \
then rm -f /tmp/python/usr/bin/python.exe; \
else true; \
fi
(cd /tmp/python/usr/bin; ln -s python2.2.exe python.exe)

$ ls -l --full-time /tmp/python/usr/bin
total 2561
-r-xr-xr-x    1 jt       Domain U  2580813 Mon Nov 04 12:56:31 
2002 libpython2.2.dll
lrwxrwxrwx    1 jt       Domain U      106 Mon Nov 04 12:56:31 
2002 python.exe -> python2.2.exe
-rwxr-xr-x    1 jt       Domain U    40960 Mon Nov 04 12:56:31 
2002 python2.2.exe
History
Date User Action Args
2022-04-10 16:05:12adminsetgithub: 36423
2002-04-12 22:55:46david_abrahamscreate