-
-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the Sage banner #25056
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Author: Jeroen Demeyer |
This comment has been minimized.
This comment has been minimized.
comment:6
It seems like the release manager is running |
Changed author from Jeroen Demeyer to none |
comment:7
Why is it stored in |
Branch: u/jdemeyer/fix_the_sage_banner |
Author: Jeroen Demeyer |
Commit: |
New commits:
|
Reviewer: Erik Bray |
comment:11
+1 Let me just make sure that the banner still gets printed pretty quickly on slower platforms (i.e. Cygwin). On that note I've also been really wanting to add like a spinner or something while it imports sage, but that's another matter... |
comment:12
It does come up noticeably a little more slowly, but it's still subtle. I'm also currently running a debug build which probably accounts for it being slow to begin with, so I'm not too concerned about it right now. |
comment:13
|
comment:14
I suggest those tests be rewritten around a dummy function that is not going to actually be changed... |
comment:15
The banner was broken in #24825, now the output of the full banner can't be redirected
Pipes that don't lead to the terminal do need to be encoded, check with isatty or always encode. |
comment:16
Also cold starts can be slow (especially over nfs), which is why historically we want to print something before Python starts up. |
comment:17
Well, starting up Python should only a fraction of the time of starting up Sage. |
comment:18
maybe we should just undo #24825, in order to allow the release of 8.2 ? |
comment:30
How about this: If you want to switch back to your branch (and just add the fix to the tests) I don't mind. My only goal here was to fix a regression. At the same time, as long as Volker agrees to the rest of your changes (getting rid of the pre-written banner files) then it's kind of a moot point. The rest of the confusion over this mostly stems from the use of "print()" instead of, say, providing an interface explicitly for writing the banner to a text file in some specific encoding (which I agree kind of sucks anyways because it's not necessarily the right encoding for the user's terminal). |
comment:31
I'm not going to play referee, please figure something out that works amongst yourselves :-) |
Changed branch from u/embray/fix_the_sage_banner to u/jdemeyer/fix_the_sage_banner |
comment:34
That's fine--I was just trying to restore some "backwards compatibility", but I think we can both agree it was bad to begin with, and that it's a moot point now. |
comment:35
Still get
|
comment:36
That reminds me to change that silly test. |
comment:37
I see; this is a different test that also depends on the source code of that particular function... |
Changed branch from u/jdemeyer/fix_the_sage_banner to u/embray/fix_the_sage_banner |
New commits:
|
comment:39
Thank you for annoying sage-on-distros by using I guess it is too late at this stage, we'll deal with it later. |
Changed branch from u/embray/fix_the_sage_banner to |
comment:41
Replying to @kiwifb:
I don't think the sarcasm is necessary--I see your point but it's not completely obvious, and you had the opportunity here to set it back to "needs_work" or something--I wouldn't mind. Please open a new ticket for this and CC me and set it to "blocker". An easy fix for this would be to ensure "VERSION.txt" is installed somewhere sensinble under |
Changed commit from |
comment:42
Replying to @embray:
I noticed this ticket because Volker included it on his branch. Rather than sarcasm, that's my exasperation at some stuff that bleeds out. I spent quite a bit of time over the years reducing the use of |
comment:43
I know, that's fair. I also want to do with any and all runtime dependency on |
comment:44
The problem with |
Changed branch from |
Something has broken the Sage banner.
In 8.2.beta8:
In 8.2.rc0:
This is despite the fact that printing the banner works:
CC: @embray
Component: user interface
Author: Jeroen Demeyer, Erik Bray
Branch: u/vbraun/36d438055e2e9bd5399152e510b6d233fc591ffe
Reviewer: Erik Bray, Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/25056
The text was updated successfully, but these errors were encountered: