[SciPy-dev] Bug in scipy.weave.catalog.default_dir()
Wed Jan 7 09:07:04 CST 2009
Stéfan van der Walt wrote:
> Hi Joseph
> 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.
Should this change also be done on the 0.7.x branch?
Graduate Research Assistant
School of Meteorology
University of Oklahoma
More information about the Scipy-dev