[sage-devel] Re: UniqueRepresentation inheritance and __classcall__

2019-09-25 Thread Travis Scrimshaw
Although it almost sounds like you should be doing the NewFoo preparsing inside NewFoo.__classcall__ (or NewFoo.__classcall_private__), which then should get passed up and handled by OldFoo.__classcall__. You might need some extra *args or **kwds to the __init__ and/or __classcall__ to handle

[sage-devel] Re: UniqueRepresentation inheritance and __classcall__

2019-09-25 Thread Travis Scrimshaw
Make OldFoo.__classcall_private__, then it is not inherited. Best, Travis On Thursday, September 26, 2019 at 8:22:23 AM UTC+10, Salvatore Stella wrote: > > Dear All, > I would like to make a new class inheriting from a class based on > UniqueRepresentation. My goal, among other things, is to

[sage-devel] UniqueRepresentation inheritance and __classcall__

2019-09-25 Thread VulK
Dear All, I would like to make a new class inheriting from a class based on UniqueRepresentation. My goal, among other things, is to preparse the arguments a little before calling the class I am inheriting from. Unfortunately this class also does some preparsing via __classcall__ to make

Re: [sage-devel] Re: Build failure at matplotlib-2.2.4 and sagenb-1.1.2 on OS X

2019-09-25 Thread Dima Pasechnik
On Wed, Sep 25, 2019 at 8:56 PM Ben Salisbury wrote: > > mth153844pe212:sage-git salis1bt$ brew install gcc brew install gfortran https://formulae.brew.sh/cask/gfortran#default in fact, you do not need gcc from brew, it might even be leading to problems. I'd suggest you remove it. > Warning:

Re: [sage-devel] Re: Build failure at matplotlib-2.2.4 and sagenb-1.1.2 on OS X

2019-09-25 Thread Ben Salisbury
mth153844pe212:sage-git salis1bt$ brew install gcc Warning: gcc 9.2.0 is already installed and up-to-date To reinstall 9.2.0, run `brew reinstall gcc` On Wednesday, September 25, 2019 at 3:54:08 PM UTC-4, John H Palmieri wrote: > > Could you also trying using Homebrew to install gfortran? > > >

Re: [sage-devel] Re: Build failure at matplotlib-2.2.4 and sagenb-1.1.2 on OS X

2019-09-25 Thread John H Palmieri
Could you also trying using Homebrew to install gfortran? On Wednesday, September 25, 2019 at 12:09:55 PM UTC-7, Ben Salisbury wrote: > > Ok, I tried the Homebrew route, and still the build failed. First, the > computer successfully executed the following: > > brew install

Re: [sage-devel] Re: Build failure at matplotlib-2.2.4 and sagenb-1.1.2 on OS X

2019-09-25 Thread Ben Salisbury
Ok, I tried the Homebrew route, and still the build failed. First, the computer successfully executed the following: brew install dimpase/science/flint brew install dimpase/science/arb brew tap brewsci/bio brew install matplotlib Then I tried to build Sage again, after a distclean, and another

[sage-devel] Trac#28534 needs review

2019-09-25 Thread Emmanuel Charpentier
A garden-variety upgrade of sqlite to 3.29.0, needed by some R packages, Trac#28534 needs review. Mentioned here because of the time needed for its review: sqlite is pretty deep un Sage's dependency tree, and upgrading it requires a *lot* of

Re: [sage-devel] Re: Build failure at matplotlib-2.2.4 and sagenb-1.1.2 on OS X

2019-09-25 Thread Ben Salisbury
Here are the outputs: mth153844pe212:~ salis1bt$ otool -L /Users/salis1bt/sage-git/local/lib/ libdfftpack.dylib /Library/Developer/CommandLineTools/usr/bin/objdump: '/Users/salis1bt/sage-git/local/lib/libdfftpack.dylib': No such file or directory mth153844pe212:~ salis1bt$ otool -L

Re: [sage-devel] Re: Build failure at matplotlib-2.2.4 and sagenb-1.1.2 on OS X

2019-09-25 Thread Dima Pasechnik
On Wed, Sep 25, 2019 at 2:04 PM Ben Salisbury wrote: > > Sorry, I had left for the day when these messages came in yesterday. Given > the output of the otool - L /Users/salis1bt/sage-git/local/bin/gfortran, > should I still do those brew installs? The output of otool -L looks OK, but I

Re: [sage-devel] Re: Build failure at matplotlib-2.2.4 and sagenb-1.1.2 on OS X

2019-09-25 Thread Ben Salisbury
Sorry, I had left for the day when these messages came in yesterday. Given the output of the otool - L /Users/salis1bt/sage-git/local/bin/gfortran, should I still do those brew installs? -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To

Re: [sage-devel] Re: Build failure at matplotlib-2.2.4 and sagenb-1.1.2 on OS X

2019-09-25 Thread Ben Salisbury
mth153844pe212:~ salis1bt$ otool -L /Users/salis1bt/sage-git/local/bin/ gfortran /Users/salis1bt/sage-git/local/bin/gfortran: /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0 .0) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9 .4)

Re: [sage-devel] Re: Build failure at matplotlib-2.2.4 and sagenb-1.1.2 on OS X

2019-09-25 Thread Dima Pasechnik
I don't know really why (well, lack of information, surely) MacOS people continue to put themselves and their machines through the torture of building full Sagemath toolchain, whereas a considerable number of Homebrew packages can be used instead, including gfortran, gmp, yasm, NTL, etc etc etc.