[Python-bugs-list] [ python-Bugs-543244 ] installation atop 2.2 fails

noreply@sourceforge.net noreply@sourceforge.net
Mon, 04 Nov 2002 10:02:07 -0800


Bugs item #543244, was opened at 2002-04-12 14:55
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=543244&group_id=5470

Category: Installation
Group: Python 2.1.2
>Status: Closed
Resolution: None
Priority: 5
Submitted By: David Abrahams (david_abrahams)
Assigned to: Jason Tishler (jlt63)
Summary: installation atop 2.2 fails

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Jason Tishler (jlt63)
Date: 2002-11-04 09:02

Message:
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

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2002-11-02 18:23

Message:
Logged In: YES 
user_id=33168

David, Jason, is this still a problem?  Can this be closed?

----------------------------------------------------------------------

Comment By: Martin v. L÷wis (loewis)
Date: 2002-04-15 13:22

Message:
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.

----------------------------------------------------------------------

Comment By: David Abrahams (david_abrahams)
Date: 2002-04-14 16:31

Message:
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


----------------------------------------------------------------------

Comment By: Martin v. L÷wis (loewis)
Date: 2002-04-13 15:13

Message:
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. 

----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2002-04-12 15:09

Message:
Logged In: YES 
user_id=31435

Change Group to Platform-specific.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=543244&group_id=5470