[SciPy-dev] Bug in scipy.weave.catalog.default_dir()
Stéfan van der Walt
Wed Jan 7 08:15:23 CST 2009
2008/10/8 Joseph Turian <email@example.com>:
> I am using scipy.weave in an environment in which my home directory is
> not accessable.
> However, scipy.weave attempts to write to $HOME/.python25_compiled,
> even though I set PYTHONCOMPILED.
> Looking a little deeper, I see that scipy.weave.catalog.default_dir()
> is implemented incorrectly.
> The documentation says:
> "If for some reason it isn't possible to build a default directory
> in the user's home, /tmp/<uid>_pythonXX_compiled is used."
> What actually happens is that if $HOME is defined,
> $HOME/.python25_compiled is used and no exception is caught if writing
> I would prefer that, as per the documentation, if
> $HOME/.python25_compiled is not writeable then the exception is caught
> and /tmp/<uid>_pythonXX_compiled is used instead.
This should now be fixed.
More information about the Scipy-dev