[sage-devel] Python ignoring CFLAGS

2010-01-01 Thread Dr. David Kirkby
I've tried to export some CFLAGS so its possible to build packages without setting them every time. This seems to work with most packages, but there is something odd about python, in that it seems to simply ignore CFLAGS. So if CFLAGS has -m64 in it, so this is ignored. Looking at the spkg-inst

Re: [sage-devel] Re: doctest failures due to rounding errors on Solaris.

2010-01-01 Thread Dr. David Kirkby
William Stein wrote: > > Test like your suggestion above would make perfect sense as unittests > or in the context of randomized testing. Those are great, there are > some in Sage, but they serve a different purpose than doctests. > > William > As a matter of interest, I wrote a few lines of

Re: [sage-devel] Re: bug in sagenb - deleting and stopping worksheet does not work

2010-01-01 Thread Pat LeSmithe
On 01/01/2010 11:27 AM, ma...@mendelu.cz wrote: > On 1 led, 20:02, "ma...@mendelu.cz" wrote: >> On 1 led, 19:50, "ma...@mendelu.cz" wrote: >>> Error: X is null >>> Source file:http://www.sagenb.org/javascript/sage/main.js >>> Line: 374 >> The same problem with Firefox 3.5.6 > And the same error m

Re: [sage-devel] Re: doctest failures due to rounding errors on Solaris.

2010-01-01 Thread William Stein
On Fri, Jan 1, 2010 at 2:18 PM, Dr. David Kirkby wrote: > TimDaly wrote: > >> All non-bit floating point output involves a choice of rounding. >> You have chosen to do rounding by truncation. This choice is not >> obvious nor necessarily the best. See >> http://www.diycalculator.com/popup-m-round.

Re: [sage-devel] Re: doctest failures due to rounding errors on Solaris.

2010-01-01 Thread Dr. David Kirkby
TimDaly wrote: > All non-bit floating point output involves a choice of rounding. > You have chosen to do rounding by truncation. This choice is not > obvious nor necessarily the best. See > http://www.diycalculator.com/popup-m-round.shtml > > In any case, you're welcome to test any way you prefe

[sage-devel] Re: doctest failures due to rounding errors on Solaris.

2010-01-01 Thread TimDaly
>     That is to say, if the Sage > documentation says: > >    sage: foo(bar) >    1.2345 > > but in fact in Sage one has > >    sage: foo(bar) >    1.2351 > > then I would consider this misleading documentation, i.e., a bug. > Your statement above suggests that you *don't* consider this a bug at >

Re: [sage-devel] Re: Solaris in VirtualBox

2010-01-01 Thread Dr. David Kirkby
Jaap Spies wrote: > You mentioned gcc-4.4.2 on the wikipage on Solaris. > But is you have a better suggestion? The truth is I do not know what is best. There appears to be some issues with 4.2 perhaps 4.3 series if the Sun assembler is used. A google on the error messages suggested using the GN

[sage-devel] Re: Solaris in VirtualBox

2010-01-01 Thread Jaap Spies
Dr. David Kirkby wrote: > Jaap Spies wrote: >> Dr. David Kirkby wrote: >> I now have: >> j...@opensolaris:~/Downloads/build-gcc-4.4.2$ /usr/local/gcc-4.4.2/bin/gcc >> -v >> Using built-in specs. >> Target: i386-pc-solaris2.11 >> Configured with: ../gcc-4.4.2/configure --prefix=/usr/local/gcc-4.4

[sage-devel] Re: bug in sagenb - deleting and stopping worksheet does not work

2010-01-01 Thread ma...@mendelu.cz
On 1 led, 20:02, "ma...@mendelu.cz" wrote: > On 1 led, 19:50, "ma...@mendelu.cz" wrote: > > > Error: X is null > > Source file:http://www.sagenb.org/javascript/sage/main.js > > Line: 374 > > The same problem with Firefox 3.5.6 And the same error message also in Firefox (Iceweasel) 3.0.6 and Epip

Re: [sage-devel] Re: Solaris in VirtualBox

2010-01-01 Thread Dr. David Kirkby
Jaap Spies wrote: > Dr. David Kirkby wrote: >> I've not used VirtualBox much, but what I have seen of it, I am very >> impressed. >> I mainly use it to connect to the internet to play chess, as the Windows >> software is better than any of the other stuff at the minute. >> > > e2-e4 :-) > > Ja

[sage-devel] Re: bug in sagenb - deleting and stopping worksheet does not work

2010-01-01 Thread ma...@mendelu.cz
On 1 led, 19:50, "ma...@mendelu.cz" wrote: > Error: X is null > Source file:http://www.sagenb.org/javascript/sage/main.js > Line: 374 The same problem with Firefox 3.5.6 Robert -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email

Re: [sage-devel] Re: Solaris in VirtualBox

2010-01-01 Thread Dr. David Kirkby
Jaap Spies wrote: > Dr. David Kirkby wrote: >> Jaap Spies wrote: >> >>> Hi Dave, >> Hi Jaap >> >> >>> I tried to build gcc-4.4.2 from source, but failed. Got gcc-4.3.2 from the >>> repo. >>> Put gcc and friends in a directory $HOME/bin, changed my .bashrc so my path >>> is >> GCC can be difficult

[sage-devel] Re: Solaris in VirtualBox

2010-01-01 Thread Jaap Spies
Dr. David Kirkby wrote: > Jaap Spies wrote: >> Jaap Spies wrote: >>> Hi, >>> >>> First I installed Solaris 5.11 from an oldish CD Solaris Express Developer >>> Edition. >>> This looked ok, but is useless because there is no support as this is >>> superseded >>> by Open Solaris. >>> >>> Next I dow

[sage-devel] Re: bug in sagenb - deleting and stopping worksheet does not work

2010-01-01 Thread ma...@mendelu.cz
On 1 led, 15:58, Pat LeSmithe wrote: > On 12/31/2009 06:14 PM, ma...@mendelu.cz wrote: > > > On 31 pro 2009, 09:22, "ma...@mendelu.cz" wrote: > >> Does not help either. > > Does not help even if I use the install script in sagenb sources > > directory to install changewd version. Any other idea?

Re: [sage-devel] Exciting developments on Python packaging

2010-01-01 Thread William Stein
On Fri, Jan 1, 2010 at 6:28 AM, Dag Sverre Seljebotn wrote: > Happy new year everyone! > > David Cournapeau from the NumPy project has (with good reason, IMO) > grown fed up with distutils, and is launching an effort to get the > scientific Python community off the distutils habit. (This has of co

[sage-devel] graphs (or axes) shifted by one pixel or so

2010-01-01 Thread Jason Grout
I can't find the recent thread where we talked about graphs shifted by one pixel or so, and I can't find a relevant ticket on trac. Here's another example of this: region_plot([x^2+y^2<=1, x<=y], (x,-2,2), (y,-2,2),plot_points=400).show(aspect_ratio=1) This is now on trac: http://trac.sagema

Re: [sage-devel] Re: Solaris in VirtualBox

2010-01-01 Thread Dr. David Kirkby
Jaap Spies wrote: > Jaap Spies wrote: >> Hi, >> >> First I installed Solaris 5.11 from an oldish CD Solaris Express Developer >> Edition. >> This looked ok, but is useless because there is no support as this is >> superseded >> by Open Solaris. >> >> Next I downloaded Open Solaris 2009/06 x86. Wo

[sage-devel] Re: Solaris in VirtualBox

2010-01-01 Thread Jaap Spies
Jaap Spies wrote: > Hi, > > First I installed Solaris 5.11 from an oldish CD Solaris Express Developer > Edition. > This looked ok, but is useless because there is no support as this is > superseded > by Open Solaris. > > Next I downloaded Open Solaris 2009/06 x86. Works like a charm. Building sa

[sage-devel] Re: Solaris in VirtualBox

2010-01-01 Thread Jaap Spies
Dr. David Kirkby wrote: > Jaap Spies wrote: > >> Hi Dave, > > Hi Jaap > > >> I tried to build gcc-4.4.2 from source, but failed. Got gcc-4.3.2 from the >> repo. >> Put gcc and friends in a directory $HOME/bin, changed my .bashrc so my path >> is > > GCC can be difficult to build on Solaris. > I

Re: [sage-devel] Re: Solaris in VirtualBox

2010-01-01 Thread Dr. David Kirkby
Jaap Spies wrote: > Hi Dave, Hi Jaap > I tried to build gcc-4.4.2 from source, but failed. Got gcc-4.3.2 from the > repo. > Put gcc and friends in a directory $HOME/bin, changed my .bashrc so my path is GCC can be difficult to build on Solaris. > /usr/ccs/bin:/export/home/jaap/bin:/usr/gnu/b

Re: [sage-devel] Re: bug in sagenb - deleting and stopping worksheet does not work

2010-01-01 Thread Pat LeSmithe
On 12/31/2009 06:14 PM, ma...@mendelu.cz wrote: > On 31 pro 2009, 09:22, "ma...@mendelu.cz" wrote: >> Does not help either. > Does not help even if I use the install script in sagenb sources > directory to install changewd version. Any other idea? Just to gather a bit more information: Do the "L

[sage-devel] Exciting developments on Python packaging

2010-01-01 Thread Dag Sverre Seljebotn
Happy new year everyone! David Cournapeau from the NumPy project has (with good reason, IMO) grown fed up with distutils, and is launching an effort to get the scientific Python community off the distutils habit. (This has of course given rise to some controversy, but David appears to have given

[sage-devel] Re: Solaris in VirtualBox

2010-01-01 Thread Jaap Spies
Dr. David Kirkby wrote: > Jaap Spies wrote: >> Hi, >> >> First I installed Solaris 5.11 from an oldish CD Solaris Express Developer >> Edition. >> This looked ok, but is useless because there is no support as this is >> superseded >> by Open Solaris. >> >> Next I downloaded Open Solaris 2009/06 x

Re: [sage-devel] doctest failures due to rounding errors on Solaris.

2010-01-01 Thread Dr. David Kirkby
Peter Jeremy wrote: > On 2009-Dec-31 17:50:05 -0200, Gonzalo Tornaria > wrote: >> gcc is actually inlining exp(1.0) to its correct value. The exp() from >> the sun library is incorrect. Try this program instead: > > FreeBSD libm is derived from Sun's libm and also gets exp(1) 1ULP high > on amd6

Re: [sage-devel] doctest failures due to rounding errors on Solaris.

2010-01-01 Thread Dr. David Kirkby
Gonzalo Tornaria wrote: > On Wed, Dec 30, 2009 at 10:38 PM, Dr. David Kirkby > wrote: >> Em, This is very odd. exp(1) gives a different result on SPARC if you build >> with gcc or Sun Studio. GCC is correct, and Sun Studio is wrong. Yet Sage on >> 't2' was build with gcc, not Sun Studio. > > gcc