Re: [sage-devel] dicts in doctests

2017-12-12 Thread Emmanuel Charpentier
I think that printing the result of bool(effective_result==expected_result) is sufficient for testing purposes, and has the advantage of testing mathematical equality, not only string equality. You may want to be more explicit when failing : you may try (something like) : res=bool(effective_re

Re: [sage-devel] dicts in doctests

2017-12-12 Thread Michael Orlitzky
On 12/12/2017 09:30 AM, Erik Bray wrote: > > Another workaround that's so obvious I smacked myself on the head is > that for many cases, particularly objects that have a small dict in > their representation, is to simply change the __repr__ so that its > dict is always displayed sorted. If the or

Re: [sage-devel] dicts in doctests

2017-12-12 Thread Maarten Derickx
On Tuesday, 12 December 2017 15:30:39 UTC+1, Erik Bray wrote: > > On Fri, Dec 8, 2017 at 10:10 AM, Erik Bray > wrote: > > On Thu, Dec 7, 2017 at 12:56 AM, Michael Orlitzky > wrote: > >> On 12/06/2017 09:49 AM, Erik Bray wrote: > >>> > >>> Did anyone ever think up a better solution to this?

[sage-devel] Re: Sage 8.1 building Mac-app fails

2017-12-12 Thread Michael Frey
I did a make in ~/sage-8.1. When that completes I cd to src/Mac-app and run make again. My version of Mac OS is 10.13.2. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an

[sage-devel] Re: Sage 8.1 building Mac-app fails

2017-12-12 Thread Dima Pasechnik
How did you start the building of Sage app? One just changes to src/mac-app and starts make This at least works with Sage 8.1 for me on OSX 10.12.6 and Xcode 9.2. On Sunday, December 10, 2017 at 9:23:11 PM UTC, Michael Frey wrote: > > I double checked and the Xcode IDE and Xcode Command Line T

[sage-devel] Sage 8.1 Mac OS 10.13.2 Build: Error installing package r-3.4.2.p0

2017-12-12 Thread Dima Pasechnik
there is a conflict with your Anaconda installation. Make sure it not in your PATH. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googleg

[sage-devel] Sage 8.1 Mac OS 10.13.2 Build: Error installing package r-3.4.2.p0

2017-12-12 Thread S. Diop
Hi there! I need help for this install error of Sage 8.1. It seems that the culprit is "libcurl >= 7.22.0 library not found by the compiler". Xcode 9.2 installed along with its command line tools version 9.2 for MacOS 10.13.2. Best wishes! S.Diop Last lines of the build log [r-3.4.2.p0] checkin

[sage-devel] Error in the communication with singular

2017-12-12 Thread Enrique Artal
I have an issue with sage-8.1 (also with 8.0). This is my code: R.=PolynomialRing(QQ,order='neglex') f=(y^2-x^3)*(y^2-x^2*y-x^3) singular.lib("all.lib") f._singular_().bernstein().sage() f._singular_().bfct().sage() The two last functions are two different algorithms in order to compute Bernstei

Re: [sage-devel] dicts in doctests

2017-12-12 Thread Erik Bray
On Fri, Dec 8, 2017 at 10:10 AM, Erik Bray wrote: > On Thu, Dec 7, 2017 at 12:56 AM, Michael Orlitzky > wrote: >> On 12/06/2017 09:49 AM, Erik Bray wrote: >>> >>> Did anyone ever think up a better solution to this? >>> >> >> Whatever you do, you wind up with a big pile of dict output in the >> m

Re: [sage-devel] Re: Should the "Element = ..." trick require categories?

2017-12-12 Thread Erik Bray
On Tue, Dec 12, 2017 at 8:06 AM, Jeroen Demeyer wrote: > On 2017-12-11 18:35, Simon King wrote: >> >> Well, we want to mix in P.category().element_class (an abstract class) >> into whatever P prescribes for its elements. So, P.element_class >> should be a class whose mro also contains abstract ele

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-12 Thread Jori Mäntysalo
On Tue, 12 Dec 2017, Dima Pasechnik wrote: Have you tested against a real LDAP server? Yes. It works. Could you comment on https://github.com/sagemath/sagenb/issues/177  rather than here?  OK, I'll continue there. -- Jori Mäntysalo

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-12 Thread Dima Pasechnik
On Tuesday, December 12, 2017 at 8:02:36 AM UTC, Jori Mäntysalo wrote: > > On Mon, 11 Dec 2017, Dima Pasechnik wrote: > > > why would you bother with easy_install at all? All these packages you > need > > are installable with pip. > > > > I am now trying to summarise what you did > > here:

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-12 Thread Dima Pasechnik
On Tuesday, December 12, 2017 at 8:02:36 AM UTC, Jori Mäntysalo wrote: > > On Mon, 11 Dec 2017, Dima Pasechnik wrote: > > > why would you bother with easy_install at all? All these packages you > need > > are installable with pip. > > > > I am now trying to summarise what you did > > here:

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-12 Thread Jori Mäntysalo
On Mon, 11 Dec 2017, Dima Pasechnik wrote: why would you bother with easy_install at all? All these packages you need are installable with pip. I am now trying to summarise what you did here: https://github.com/sagemath/sagenb/issues/177 Please have a look and check. I do not know if "./sage