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

Paul Pogonyshev pogonyshev at gmx.net
Thu Feb 15 20:40:35 CET 2007


John Machin wrote:
> On 15/02/2007 10:30 AM, Paul Pogonyshev wrote:
> > Hi,
> > 
> > Distutils create dynamic library for a C extension in `build/...'
> > directory.  This makes it impossible to run program without
> > installing it,
> 
> Could you not put the build directory on your PYTHONPATH?
> Possible, if inconvenient.

Not really, because I want users (package is a library) to be able to
run unit tests.  They should be able to do this without any extra steps.

> > [...]
> Is
> ....setup.py build_ext --inplace
> what you are looking for?

No, for the same reason.

Paul


More information about the Distutils-SIG mailing list