Ticket #13867: python-p5.patch

File python-p5.patch, 1.6 KB (added by vbraun, 7 years ago)

diff for review only

  • SPKG.txt

    diff -r dc0a131f4d5e SPKG.txt
    a b  
    6767
    6868== Changelog ==
    6969
     70=== python-2.7.3.p5 (Volker Braun, 28 December 2012) ===
     71 * Trac #13867: disable debugging output at each command line
     72
    7073=== python-2.7.3.p4 (Jean-Pierre Flori, 26 December 2012) ===
    7174 * Trac #13864: configure Python with pydebug when SAGE_DEBUG is set to yes.
    7275
  • new file patches/disable_print_refs_debug.patch

    diff -r dc0a131f4d5e patches/disable_print_refs_debug.patch
    - +  
     1diff -ur src/Python/pythonrun.c new/Python/pythonrun.c
     2--- src/Python/pythonrun.c      2012-12-04 20:43:32.000000000 +0000
     3+++ new/Python/pythonrun.c      2012-12-27 16:33:24.552894299 +0000
     4@@ -37,13 +37,7 @@
     5 #include "windows.h"
     6 #endif
     7 
     8-#ifndef Py_REF_DEBUG
     9 #define PRINT_TOTAL_REFS()
     10-#else /* Py_REF_DEBUG */
     11-#define PRINT_TOTAL_REFS() fprintf(stderr,                              \
     12-                   "[%" PY_FORMAT_SIZE_T "d refs]\n",                   \
     13-                   _Py_GetRefTotal())
     14-#endif
     15 
     16 #ifdef __cplusplus
     17 extern "C" {
     18Only in new/Python: pythonrun.c~
  • spkg-install

    diff -r dc0a131f4d5e spkg-install
    a b  
    2828    fi
    2929done
    3030
    31 # We are setting LDFLAGS and CPPFLAGS so that we pick up Sage's readline
     31# We are setting LDFLAGS so that we pick up Sage's readline
    3232LDFLAGS="-L$SAGE_LOCAL/lib $LDFLAGS"
    3333export LDFLAGS
    3434
    35 CPPFLAGS="-I$SAGE_LOCAL/include $CPPFLAGS"
    36 export CPPFLAGS
    37 
    3835# Extra flags for ./configure
    3936EXTRAFLAGS=
    4037