[Distutils] c extensions: how to rebuild and test quickly

Paul Pogonyshev pogonyshev at gmx.net
Thu Feb 15 00:30:10 CET 2007


Hi,

Distutils create dynamic library for a C extension in `build/...'
directory.  This makes it impossible to run program without
installing it, which I find very important for developing.  Ideally,
process should look like this:

    edit Python code -> test (uninstalled);

or

    edit C code -> ./setup.by build -> test (uninstalled).

This is all possible if I create a symbolic link from build
directory to the sources.  Then extension module can be imported
normally and everything is like it was with all code limited to
Python.

Is it possible in some standard (and preferably portable) way with
distutils?  Is it already done?

Paul


More information about the Distutils-SIG mailing list