Re: [sage-devel] Re: giac build fails on sage 8.6.rc0 (--with-python=3 CC=clang CXX=clang++)

2019-01-14 Thread Dima Pasechnik
On Fri, Jan 11, 2019 at 7:43 PM parisse wrote: > > The latest version of giac is 1.5.0-35 (1.4.9-45 is exactly 1 year old now). > Some compilation bugs were reported by Dima on Xcas forum and fixed some > weeks ago. Thanks. Should we consider 1.5.0-35 (or newer) a stable Giac version? -- You

Re: [sage-devel] Re: sage script runs by itself, but cannot be loaded

2019-01-14 Thread E. Madison Bray
On Mon, Jan 14, 2019 at 2:38 PM Dima Pasechnik wrote: > > On Mon, Jan 14, 2019 at 12:36 PM E. Madison Bray > wrote: > > > > On Mon, Jan 14, 2019 at 12:00 PM Dima Pasechnik wrote: > > > > > > Turns out it's due to the script reading a parameter, in the usual > > > Pythonic way, at the end of the

Re: [sage-devel] Re: sage script runs by itself, but cannot be loaded

2019-01-14 Thread Dima Pasechnik
On Mon, Jan 14, 2019 at 12:36 PM E. Madison Bray wrote: > > On Mon, Jan 14, 2019 at 12:00 PM Dima Pasechnik wrote: > > > > Turns out it's due to the script reading a parameter, in the usual > > Pythonic way, at the end of the file: > > > > if __name__ == "__main__": > >import sys > >m = i

Re: [sage-devel] Re: sage script runs by itself, but cannot be loaded

2019-01-14 Thread E. Madison Bray
On Mon, Jan 14, 2019 at 12:00 PM Dima Pasechnik wrote: > > Turns out it's due to the script reading a parameter, in the usual > Pythonic way, at the end of the file: > > if __name__ == "__main__": >import sys >m = int(sys.argv[1]) >compute_alpha(m) > > Namely, load() tries to evaluate

Re: [sage-devel] Build failure of 8.5 on ubuntu 18.04.1 LTS

2019-01-14 Thread John Cremona
On Mon, 14 Jan 2019 at 10:36, E. Madison Bray wrote: > On Sat, Jan 12, 2019 at 12:33 PM John Cremona > wrote: > > > > Building from a freshly extracted sage-8.5-tar.gz, on a machine where I > have built many versions successfully *including 8.6.rc0* I have an error > in building cypari. > > > >

[sage-devel] Re: sage script runs by itself, but cannot be loaded

2019-01-14 Thread Dima Pasechnik
Turns out it's due to the script reading a parameter, in the usual Pythonic way, at the end of the file: if __name__ == "__main__": import sys m = int(sys.argv[1]) compute_alpha(m) Namely, load() tries to evaluate int(sys.argv[1]), whereas for some reason sys.argv[1] is '-i'. So this is

[sage-devel] sage script runs by itself, but cannot be loaded

2019-01-14 Thread Dima Pasechnik
My student created a sage script crossing.sage that runs by itself, i.e. starting it in bash, with it having the 1st line #!/usr/bin/env sage but an attempt to load("crossing.sage") in Sage gives an error: ValueErrorTraceback (most recent call last) in () > 1

Re: [sage-devel] Build failure of 8.5 on ubuntu 18.04.1 LTS

2019-01-14 Thread E. Madison Bray
On Sat, Jan 12, 2019 at 12:33 PM John Cremona wrote: > > Building from a freshly extracted sage-8.5-tar.gz, on a machine where I have > built many versions successfully *including 8.6.rc0* I have an error in > building cypari. > > Log attached. I don't see anything *obvious* between 8.5 and 8.6

Re: [sage-devel] Purpose of XML_RESULTS

2019-01-14 Thread E. Madison Bray
Googling "XML_RESULTS Cython" revealed: https://github.com/cython/cython/blob/master/Cython/Build/Dependencies.py#L1120 >From which parts of the relevant code in sage's setup.py also appears to have been borrowed. It appears to be an undocumented (?) feature which writes out results of Cython co