[Distutils] Building ordinary shared library?

David Abrahams dave@boost-consulting.com
Sat Oct 5 19:16:02 2002


Hi,

I'm about to release v2 of Boost.Python, and I thought it might be nice to
provide a distutils setup for it. We have our own build system, but some
Python users might be more comfortable with distutils, and I have a secret
hope that distutils will be able to work on a few paltforms we don't have
covered such as MacOS X.

I'm now kicking myself for throwing them away, but one of my users sent me
distutils scripts for Boost.Python a while back as part of a bug report.

My problems are twofold:

1. I have to distribute a shared library which is not an extension module.
The extension modules I have to distribute (tests and examples) all link to
this library.

2. The documentation is really incomplete, and doesn't cover this AFAICT.
In fact...well, I've found yet another version of incomplete documentation
at http://www.python.org/sigs/distutils-sig/doc/dist/dist.html which
doesn't match the Official Python development documentation
(http://www.python.org/dev/doc/devel/dist/dist.html).

Which one is the official docs? Shouldn't they be synchronized?

I think it still doesn't answer my question ("How do I build a shared
library with distutils -- and link extension modules to it?")

Thanks in advance for any info,
Dave

-----------------------------------------------------------
           David Abrahams * Boost Consulting
dave@boost-consulting.com * http://www.boost-consulting.com