Ryan Hinton wrote:
> Set the environment variable SAGE_TESTDIR to control this location.
> The school IT staff pointed me the right direction. :-)
> 

I just glanced at the source and was going to suggest this; I'm glad 
you've already verified it works.

I think the suggestion on the other thread basically boils down to 
changing the default SAGE_TESTDIR (in sage/local/bin/sage-env) from a 
subdirectory of SAGE_ROOT to a subdirectory of DOT_SAGE.

I posted a one-line patch to 
http://trac.sagemath.org/sage_trac/ticket/6861.  I don't have a 
system-wide install to test it, though.  Can someone test/review the patch?

Thanks,

Jason





> - Ryan
> 
> On Sep 2, 2:50 pm, Ryan Hinton <iob...@email.com> wrote:
>> I am working with our school IT staff to install Sage.  I compiled it
>> in a temporary location, they copied it to an "official" location (and
>> ran it once to regenerate path-dependencies), and now I'm trying to
>> run the doctests.  But I get failures like the following because I
>> don't have write-access to the installed location.
>>
>> $ ./sage -t devel/sage/sage/algebras/algebra.py
>> sage -t  "devel/sage/sage/algebras/algebra.py"
>> Traceback (most recent call last):
>>   File "/share/apps/contrib/sage-4.1/local/bin/sage-doctest", line
>> 754, in <module>
>>     test_file(argv[1], library_code = library_code)
>>   File "/share/apps/contrib/sage-4.1/local/bin/sage-doctest", line
>> 587, in test_file
>>     open(f,"w").write(s)
>> IOError: [Errno 13] Permission denied: './.doctest_algebra.py'
>>          [0.2 s]
>> exit code: 256
>>
>> When my CWD is in my home directory (i.e. I have write access), it
>> tries to write the doctest files to '.../sage-4.1/
>> tmp/.doctest_algebra.py'.
>>
>> So the question: how can I skip writing these files, or specify what
>> location these files should be created?
>>
>> Thanks!
>>
>> - Ryan
> > 
> 


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to