Albert Chin-A-Young china@thewrittenword.com
Sat, 2 Sep 2000 18:33:12 -0500

The shared library extension on HP-UX is 'sl', not 'so'. Because of
this, the following code in setup.py breaks:
    # Copy the C extensions into the build directory
    for filename in ['pyexpat.so', 'sgmlop.so']:
        shutil.copy('extensions/' + filename, 'build/xml/parsers/')

    shutil.copy('extensions/wstrop.so', 'build/xml/unicode/')

I can easy create an if statement for HP-UX but want to know if there
is a dynamic way to determine, via some Config module, what the shared
library suffix is. Perl has Config.pm for this. Does Python have
something similar?

albert chin (china@thewrittenword.com)