-
-
Notifications
You must be signed in to change notification settings - Fork 564
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
Running .spyx files from the command line doesn't work anymore #9191
Comments
comment:1
Well, no surprise!
This is a very easy fix, as it turns out. I haven't got a clue how to doctest it, though. |
comment:2
It works. Needs review. |
Author: Karl-Dieter Crisman |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:5
Attachment: 9191_run_cython.patch.gz I expanded on your patch, added a doctest, renamed |
Changed author from Karl-Dieter Crisman to Karl-Dieter Crisman, Jeroen Demeyer |
comment:6
Wow, nice work! Very minor concerns below. I'm a little concerned about why .pyx files worked before anyway. Did it just make it to the
line and Also, any reason for making the messages print to stderr when they aren't errors? As well as for changing things to the 'new' print statements? I guess you did the work so I shouldn't complain :) but it always means I worry about missing some small detail. Finally, if you're going to add pyx files to those which this command does, you should probably add a testing part to the doctest patch for that as well... |
Reviewer: Jeroen Demeyer, Karl-Dieter Crisman |
comment:8
Replying to @kcrisman:
They worked only because they were treated as plain Python files. No Cython was involved. Treating them like
These kind of diagnostic messages are often printed to I'm happy with simply removing the "Compiling..." line also.
I really dislike the
syntax in Python 2. Besides, it doesn't hurt to be more compatible with Python 3.
I'm not sure, because running |
comment:9
Okay, that's all good enough for me. I'll test it sometime later but it all makes sense and looks nice. |
comment:10
I confirmed that nontrivial .pyx files did fail before - nice catch. Somewhat ironically, the second patch doesn't apply to Sage 5.4.beta2. Does this depend on the patch which does or does not remove gcc optional from Sage? |
Dependencies: #13533 |
comment:11
In fact, I guess this patch must be based on this assumption, given that all the spyx doctest in cmdline.py has no optional gcc! Modulo that issue, this is fine, so putting positive review and sage-pending. On a separate issue, I'm now convinced that gcc doctests shouldn't be optional - reporting further at #12446 where at least one of these showed up. |
This comment has been minimized.
This comment has been minimized.
comment:13
Or, if #13540 comes in, then I guess we could use the other patch. I'm putting a probably illegal dependency listing now. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:20
This will need to be rebased to #13579. |
Attachment: 9191_doctest_spyx.patch.gz |
comment:22
Rebased to sage-5.4.rc4. I assume the positive_review still stands. |
Merged: sage-5.5.beta1 |
Create a file like this:
We have:
Apply
Depends on #13533
Depends on #13579
Depends on #13631
Depends on #13681
Component: misc
Author: Karl-Dieter Crisman, Jeroen Demeyer
Reviewer: Jeroen Demeyer, Karl-Dieter Crisman
Merged: sage-5.5.beta1
Issue created by migration from https://trac.sagemath.org/ticket/9191
The text was updated successfully, but these errors were encountered: