[Numpy-discussion] set_local_path in test files

2008-07-02 Thread Alan McIntyre
Some test files have a set_local_path()/restore_path() pair at the top, and some don't. Is there any reason to be changing sys.path like this in the test modules? If not, I'll take them out when I see them. Thanks, Alan ___ Numpy-discussion mailing

Re: [Numpy-discussion] set_local_path in test files

2008-07-02 Thread Pearu Peterson
Alan McIntyre wrote: Some test files have a set_local_path()/restore_path() pair at the top, and some don't. Is there any reason to be changing sys.path like this in the test modules? If not, I'll take them out when I see them. The idea behind set_local_path is that it allows running tests

Re: [Numpy-discussion] set_local_path in test files

2008-07-02 Thread Alan McIntyre
On Wed, Jul 2, 2008 at 9:35 AM, Pearu Peterson [EMAIL PROTECTED] wrote: Alan McIntyre wrote: Some test files have a set_local_path()/restore_path() pair at the top, and some don't. Is there any reason to be changing sys.path like this in the test modules? If not, I'll take them out when I

Re: [Numpy-discussion] set_local_path in test files

2008-07-02 Thread Matthew Brett
Hi, The idea behind set_local_path is that it allows running tests inside subpackages without the need to rebuild the entire package. Ah, thanks; I'd forgotten about that. I'll leave them alone, then. I made a note for myself to make sure it's possible to run tests locally without doing a

Re: [Numpy-discussion] set_local_path in test files

2008-07-02 Thread Robert Kern
On Wed, Jul 2, 2008 at 09:01, Alan McIntyre [EMAIL PROTECTED] wrote: On Wed, Jul 2, 2008 at 9:35 AM, Pearu Peterson [EMAIL PROTECTED] wrote: Alan McIntyre wrote: Some test files have a set_local_path()/restore_path() pair at the top, and some don't. Is there any reason to be changing sys.path

Re: [Numpy-discussion] set_local_path in test files

2008-07-02 Thread Pearu Peterson
On Wed, July 2, 2008 8:25 pm, Robert Kern wrote: On Wed, Jul 2, 2008 at 09:01, Alan McIntyre [EMAIL PROTECTED] wrote: On Wed, Jul 2, 2008 at 9:35 AM, Pearu Peterson [EMAIL PROTECTED] wrote: Alan McIntyre wrote: Some test files have a set_local_path()/restore_path() pair at the top, and some

Re: [Numpy-discussion] set_local_path in test files

2008-07-02 Thread Robert Kern
On Wed, Jul 2, 2008 at 13:58, Pearu Peterson [EMAIL PROTECTED] wrote: On Wed, July 2, 2008 8:25 pm, Robert Kern wrote: On Wed, Jul 2, 2008 at 09:01, Alan McIntyre [EMAIL PROTECTED] wrote: On Wed, Jul 2, 2008 at 9:35 AM, Pearu Peterson [EMAIL PROTECTED] wrote: Alan McIntyre wrote: Some test

Re: [Numpy-discussion] set_local_path in test files

2008-07-02 Thread Alan McIntyre
On Wed, Jul 2, 2008 at 1:25 PM, Robert Kern [EMAIL PROTECTED] wrote: Please remove them and adjust the imports. As I've mentioned before, numpy and scipy can now reliably be built in-place with python setup.py build_src --inplace build_ext --inplace. This is a more robust method to test

Re: [Numpy-discussion] set_local_path in test files

2008-07-02 Thread Robert Kern
On Wed, Jul 2, 2008 at 14:34, Alan McIntyre [EMAIL PROTECTED] wrote: On Wed, Jul 2, 2008 at 1:25 PM, Robert Kern [EMAIL PROTECTED] wrote: Please remove them and adjust the imports. As I've mentioned before, numpy and scipy can now reliably be built in-place with python setup.py build_src

Re: [Numpy-discussion] set_local_path in test files

2008-07-02 Thread Stéfan van der Walt
2008/7/2 Robert Kern [EMAIL PROTECTED]: On Wed, Jul 2, 2008 at 14:34, Alan McIntyre [EMAIL PROTECTED] wrote: On Wed, Jul 2, 2008 at 1:25 PM, Robert Kern [EMAIL PROTECTED] wrote: Please remove them and adjust the imports. As I've mentioned before, numpy and scipy can now reliably be built