Re: more flexible dynamic loading wanted

Guido.van.Rossum@cwi.nl
Fri, 17 Feb 1995 13:31:07 +0100

> In the current python release (1.1.1) there is
> a difference between modules written in python
> and modules written in C:
>
> If you write a new module in python you just copy
> it into the lib or extend your PYTHONPATH, but if
> you write your module in C, you must add the module
> to the Setup file and recompile python, even if
> you use dynamic loading.
> (I am working on SUN OS 4.1.3 with python and so
> there is dynamic loading available.)
>
> Is this correct, or do I miss something ?

You don't need to recompile all of Python -- you only need to compile
the module you want to load dynamically. You don't need to add them
to the Setup file either. If you look in the subdirectories of the
Extensions directory (read the Makefile.pre.in files) you'll find many
modules that can be comiled independently from the base Python
software.

--Guido van Rossum, CWI, Amsterdam <mailto:Guido.van.Rossum@cwi.nl>
<http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>