Is a "good thing"? (long)

Gerd Woetzel woetzel at
Mon Mar 26 12:19:26 CEST 2001

>Andrew Kuchling <akuchlin at> writes:

>> woetzel at (Gerd Woetzel) writes:
>> > Modules/Setup has buit and which worked
>> > fine during the test phase, but has (secretly?) created
>> > ( too! Finally "make install" has installed all of them.
>> That certainly shouldn't have happened.  Can you reproduce the problem?

Martin von Loewis <loewis at> writes:

>It could happen if you use *shared* in Modules/Setup and if
>is older than 1.30; before, it would use on builtin_module_names to
>exclude modules. So that was a problem once and should be fixed since

I have tried 2.1b1 and the newest 2.1b2a this morning.
It still installs both both (wrong!) and (the
working module). Same with and

Note: After removing the installation directory /opt/python/lib/python2.1/
      I have done the Installation from scratch, starting with the extraction
      of Python-2.1b2a.tar.gz.

Here is my Setup.local which I have copied to Python-2.1b2a/Modules after
extraction of the sources (yes, I used  *shared*) :

   readline readline.c -I/opt/gnu/include -L/opt/gnu/lib -lreadline -ltermcap


   _socket socketmodule.c \
	-DUSE_SSL -I$(WZINCL)/ssl -I$(WZINCL)/ssl/openssl \
	-L$(WZLIB)/ssl -R$(WZLIB)/ssl -lssl -lcrypto

   zlib zlibmodule.c -I$(WZINCL) -L$(WZLIB) -R$(WZLIB) -lz

Here is the output of "grep _socket make.out":

    gcc -shared  Modules/socketmodule.o  -L/home/woetzel/lib/ssl -R/home/woetzel/lib/ssl -lssl -lcrypto  -o Modules/
    building '_socket' extension
    gcc -shared build/temp.solaris-2.8-sun4u-2.1/socketmodule.o -L/usr/local/ssl/lib -L/usr/local/lib -lssl -lcrypto -o build/lib.solaris-2.8-sun4u-2.1/
    skipping '_socket' extension (up-to-date)
      from _socket import *
      from _socket import *
    /opt/gnu/gnubin/install -c -m 644 ./Lib/test/ /opt/python/lib/python2.1/test
    /opt/gnu/gnubin/install -c -m 644 ./Lib/test/output/test_socket /opt/python/lib/python2.1/test/output
    Compiling /opt/python/lib/python2.1/test/ ...
    Compiling /opt/python/lib/python2.1/test/ ...
    skipping '_socket' extension (up-to-date)
    skipping '_socket' extension (up-to-date)
    copying build/lib.solaris-2.8-sun4u-2.1/ -> /opt/python/lib/python2.1/lib-dynload
    /opt/gnu/gnubin/install -c -m 555 Modules/ /opt/python/lib/python2.1/lib-dynload/

ls -l /opt/python/lib/python2.1/lib-dynload/_socket*:

    -rwxrwxr-x  1 woetzel  woetzel     60704 Mar 26 11:24 /opt/python/lib/python2.1/lib-dynload/
    -r-xr-xr-x  1 woetzel  woetzel     60668 Mar 26 11:35 /opt/python/lib/python2.1/lib-dynload/

Not a big Problem. "rm lib-dynload/" will fix it.
Just for information ... 

Gerd Woetzel            | email: gerd.woetzel at
GMD FIT.CSCW            | phone: ++49 2241 142648 (fax: 142084)
D-53754 Sankt Augustin  | www:

More information about the Python-list mailing list