C extensions without using shared libraries

Skip Montanaro skip at pobox.com
Tue Sep 4 23:31:25 EDT 2001


    Rolo> So are you saying there is a way to make my module a builtin
    Rolo> module?  Are there any docs, details on how to do this?

It's actually quite easy.  Take a look at Modules/Setup.dist and copy it to
Modules/Setup.  In particular, note the commented out line:

#*shared*

If you remove the "#", any module info below that point will be dynamically
linked.  If you leave it commented out, all modules specified in the Setup
file will be linked statically with the main interpreter.

With a valid Modules/Setup file, running "make Makefile" in the top-level
directory should create the necessary bits in that Makefile to compile and
link the various modules you've defined.

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list