-
-
Notifications
You must be signed in to change notification settings - Fork 549
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
Remove debugging output from Python command line #13867
Comments
comment:1
I'm thinking we should just patch Python to not print out extra crap. Otherwise we have basically no hope of running the Sage doctests, no? |
comment:2
Good point. |
comment:3
In fact I do not really agree, especially now that I've checked that the crappy additional Python output does not pertub the doctest framework (surely because its spit on stderr and not stdout). |
comment:4
Surely the sage pexpect interface to itself will not work. Or various checks in |
Author: Volker Braun |
This comment has been minimized.
This comment has been minimized.
comment:5
I'm taking over this ticket to patch up python |
Changed keywords from pynac spkg debug to python spkg debug |
This comment has been minimized.
This comment has been minimized.
comment:7
Just to be on the safe side: To use this one with SAGE_DEBUG=yes on top of an existing Sage install, one needs to install this new python spkg, then (re-)install the new cython spkg from #13832, and then sage -ba, right? |
comment:8
to get a working Sage you also need a patch to the Sage library (will post here soon) and a fixed Singular spkg... stay tuned ;-) |
comment:9
Patch to the Sage library is at #13868 |
comment:11
#13864 is now the meta-ticket. |
comment:13
Replying to @simon-king-jena:
OK, forget about that, Volker was faster with his change to #13864. |
comment:14
In |
Dependencies: #13864 |
Changed dependencies from #13864 to none |
comment:17
The |
comment:18
Yes, it does use Note that adding
|
comment:19
Replying to @vbraun:
It also uses
|
comment:20
I'm ok with the solution Volker proposes, we don't need that "extra" output, but I still think that Pynac should be able to deal with a vanilla Python debug build. |
Attachment: python-p5.patch.gz diff for review only |
comment:21
I've removed the superfluous CPPFLAGS. Also |
comment:23
I use the package successfully with SAGE_DEBUG=yes. Some criticism: SPKG.txt contains a section "Patches", but the new patch disable_print_refs_debug.patch is not mentioned. The content of environment variables is sometimes tested like
if I am not mistaken, but here it is
Is that a problem? |
comment:24
I've added a line documenting the disable_print_refs_debug.patch The |
Reviewer: Jean-Pierre Flori |
comment:25
Looks good. If you really wants me to rant, I'd say:
|
comment:26
Server down :-( |
Merged: sage-5.7.beta4 |
The extra debugging output "
[number of refs]
" before each command line prompt breaks the pynad build. the problem is that the test used by the AX_PYTHON_DEVEL autoconf macro to check for distutils fails when Python is built with pydebug.Also, breaks the Sage test suite.
I'm just removing this extra output. Its not that useful, really, since object counts in Sage are always pretty large and widely fluctuating with stuff like coercion running in the background. It also doesn't offer any extra info over
gc.get_count()
.Install http://www.stp.dias.ie/~vbraun/Sage/spkg/python-2.7.3.p5.spkg
CC: @burcin @vbraun @simon-king-jena
Component: packages: standard
Keywords: python spkg debug
Author: Volker Braun
Reviewer: Jean-Pierre Flori
Merged: sage-5.7.beta4
Issue created by migration from https://trac.sagemath.org/ticket/13867
The text was updated successfully, but these errors were encountered: