[SciPy-dev] tests, relative import: what's best ?

Robert Kern robert.kern at gmail.com
Mon Nov 26 11:22:54 EST 2007


David Cournapeau wrote:
> Robert Kern wrote:

>> If we can, I'd prefer that we simply make build_src/build_ext --inplace work for
>> numpy and scipy and then remove set_package_path() and restore_path().
> I didn't know about this option of distutils. I've just tried it on some 
> packages, it seems to just put the extensions and python files outside 
> the usual build directory ?

Yes.

> This way, we should follow the first method, 
> but without messing sys.path ?

No, the absolute imports.

> What does not work with numpy/scipy related to --inplace ?

numpy doesn't put the generated headers (__multiarray_api.h and __ufunc_api.h)
in the right place, so it isn't usable for building scipy.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco



More information about the SciPy-Dev mailing list