[Distutils] static linking in distutils/setuptools?

Phillip J. Eby pje at telecommunity.com
Thu Jan 26 22:36:47 CET 2006


At 01:48 PM 1/23/2006 -0500, Christopher Fonnesbeck wrote:
>Is there any way to specify static linking to particular libraries
>when building installers with distutils or setuptools? I want to be
>able to include the shared libraries that I am linking to in my
>builds. I did not see any info on this in the docs.

I don't believe there's a way to force linking to occur statically.  The 
distutils does have a 'build_clib' command that can be used to *build* 
static libraries, which then can be linked with your other code, and the 
current in-development version of setuptools has limited support for 
building shared libraries that get included with your package.  In both 
cases, however, the tools are for building the libraries, not including 
system libraries in your distribution.



More information about the Distutils-SIG mailing list