Parcourir la source

disable the massive amount of warnings related to reserved keywords as they make Python nearly unusable with the current existing applications

Ralf S. Engelschall il y a 19 ans
Parent
commit
b603d48b2a
2 fichiers modifiés avec 17 ajouts et 5 suppressions
  1. 16 4
      python/python.patch
  2. 1 1
      python/python.spec

+ 16 - 4
python/python.patch

@@ -1,6 +1,18 @@
+Index: Include/code.h
+--- Include/code.h.orig	2006-05-23 12:37:38 +0200
++++ Include/code.h	2006-11-03 19:29:53 +0100
+@@ -52,7 +52,7 @@
+ /* This should be defined if a future statement modifies the syntax.
+    For example, when a keyword is added.
+ */
+-#define PY_PARSER_REQUIRES_FUTURE_KEYWORD
++#undef PY_PARSER_REQUIRES_FUTURE_KEYWORD
+ 
+ #define CO_MAXBLOCKS 20 /* Max static block nesting within a function */
+ 
 Index: Include/pyport.h
 --- Include/pyport.h.orig	2006-06-10 14:23:46 +0200
-+++ Include/pyport.h	2006-11-02 22:33:14 +0100
++++ Include/pyport.h	2006-11-03 19:29:10 +0100
 @@ -370,8 +370,12 @@
   * config to #define Py_HUGE_VAL to something that works on your platform.
   */
@@ -16,7 +28,7 @@ Index: Include/pyport.h
   * Return 1 iff a libm function overflowed.  Set errno to 0 before calling
 Index: Modules/_ctypes/libffi/configure
 --- Modules/_ctypes/libffi/configure.orig	2006-08-14 18:17:41 +0200
-+++ Modules/_ctypes/libffi/configure	2006-11-02 22:33:57 +0100
++++ Modules/_ctypes/libffi/configure	2006-11-03 19:29:10 +0100
 @@ -3516,7 +3516,7 @@
  cris-*-*) TARGET=LIBFFI_CRIS; TARGETDIR=cris;;
  s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
@@ -28,7 +40,7 @@ Index: Modules/_ctypes/libffi/configure
  sh64-*-linux* | sh5*-*-linux*) TARGET=SH64; TARGETDIR=sh64;;
 Index: configure
 --- configure.orig	2006-09-05 04:54:42 +0200
-+++ configure	2006-11-02 22:33:14 +0100
++++ configure	2006-11-03 19:29:10 +0100
 @@ -3800,11 +3800,11 @@
  		# debug builds.
  		OPT="-g -Wall $STRICT_PROTO"
@@ -54,7 +66,7 @@ Index: configure
  		    then
 Index: setup.py
 --- setup.py.orig	2006-08-10 01:42:18 +0200
-+++ setup.py	2006-11-02 22:35:54 +0100
++++ setup.py	2006-11-03 19:29:10 +0100
 @@ -244,8 +244,8 @@
  
      def detect_modules(self):

+ 1 - 1
python/python.spec

@@ -33,7 +33,7 @@ Class:        BASE
 Group:        Language
 License:      GPL
 Version:      2.5
-Release:      20061102
+Release:      20061103
 
 #   package options
 %option       with_readline      yes