]> git.pld-linux.org Git - packages/python.git/blame - python-pythonpath.patch
- adapterized (avoid macros with /usr/include/{ncurses,freetype}*)
[packages/python.git] / python-pythonpath.patch
CommitLineData
82f490e2
AG
1diff -burN Python-2.3.3.orig/Demo/cgi/cgi1.py Python-2.3.3/Demo/cgi/cgi1.py
2--- Python-2.3.3.orig/Demo/cgi/cgi1.py 2002-10-17 18:33:40.000000000 +0200
3+++ Python-2.3.3/Demo/cgi/cgi1.py 2004-03-14 19:18:34.990634848 +0100
4@@ -1,4 +1,4 @@
5-#!/usr/local/bin/python
6+#!/usr/bin/python
7
8 """CGI test 1 - check server setup."""
9
10diff -burN Python-2.3.3.orig/Demo/cgi/cgi2.py Python-2.3.3/Demo/cgi/cgi2.py
11--- Python-2.3.3.orig/Demo/cgi/cgi2.py 2002-10-16 23:01:27.000000000 +0200
12+++ Python-2.3.3/Demo/cgi/cgi2.py 2004-03-14 19:18:41.993570240 +0100
13@@ -1,4 +1,4 @@
14-#!/usr/local/bin/python
15+#!/usr/bin/python
16
17 """CGI test 2 - basic use of cgi module."""
18
19diff -burN Python-2.3.3.orig/Demo/cgi/cgi3.py Python-2.3.3/Demo/cgi/cgi3.py
20--- Python-2.3.3.orig/Demo/cgi/cgi3.py 2002-10-17 17:53:02.000000000 +0200
21+++ Python-2.3.3/Demo/cgi/cgi3.py 2004-03-14 19:18:46.984811456 +0100
22@@ -1,4 +1,4 @@
23-#!/usr/local/bin/python
24+#!/usr/bin/python
25
26 """CGI test 3 (persistent data)."""
27
28diff -burN Python-2.3.3.orig/Lib/cgi.py Python-2.3.3/Lib/cgi.py
29--- Python-2.3.3.orig/Lib/cgi.py 2003-02-27 21:14:32.000000000 +0100
30+++ Python-2.3.3/Lib/cgi.py 2004-03-14 19:18:16.120503544 +0100
507f1b2b 31@@ -1,4 +1,4 @@
32-#! /usr/local/bin/python
33+#! /usr/bin/python
34
9d0d4238 35 # NOTE: the above "/usr/local/bin/python" is NOT a mistake. It is
36 # intentionally NOT "/usr/bin/env python". On many systems
82f490e2
AG
37diff -burN Python-2.3.3.orig/Misc/HISTORY Python-2.3.3/Misc/HISTORY
38--- Python-2.3.3.orig/Misc/HISTORY 2003-10-20 16:34:46.000000000 +0200
39+++ Python-2.3.3/Misc/HISTORY 2004-03-14 19:18:16.148499288 +0100
40@@ -7239,9 +7239,9 @@
507f1b2b 41 were invoked.
42
43 - It is now recommended to use ``#!/usr/bin/env python'' instead of
44-``#!/usr/local/bin/python'' at the start of executable scripts, except
45+``#!/usr/bin/python'' at the start of executable scripts, except
46 for CGI scripts. It has been determined that the use of /usr/bin/env
47-is more portable than that of /usr/local/bin/python -- scripts almost
48+is more portable than that of /usr/bin/python -- scripts almost
49 never have to be edited when the Python interpreter lives in a
50 non-standard place. Note that this doesn't work for CGI scripts since
51 the python executable often doesn't live in the HTTP server's default
82f490e2 52@@ -10526,7 +10526,7 @@
507f1b2b 53 Python exits or receives a SIGTERM or SIGHUP signal.
54
55 The interpreter is now generally assumed to live in
56-/usr/local/bin/python (as opposed to /usr/local/python). The script
57+/usr/bin/python (as opposed to /usr/local/python). The script
58 demo/scripts/fixps.py will update old scripts in place (you can easily
59 modify it to do other similar changes).
60
82f490e2
AG
61diff -burN Python-2.3.3.orig/Tools/faqwiz/faqw.py Python-2.3.3/Tools/faqwiz/faqw.py
62--- Python-2.3.3.orig/Tools/faqwiz/faqw.py 1998-04-04 00:27:04.000000000 +0200
63+++ Python-2.3.3/Tools/faqwiz/faqw.py 2004-03-14 19:18:16.150498984 +0100
507f1b2b 64@@ -1,4 +1,4 @@
65-#! /usr/local/bin/python
66+#! /usr/bin/python
67
68 """FAQ wizard bootstrap."""
69
70@@ -10,7 +10,7 @@
71 # executable.
72
73 # You need to edit the first line and the lines that define FAQDIR and
74-# SRCDIR, below: change /usr/local/bin/python to where your Python
75+# SRCDIR, below: change /usr/bin/python to where your Python
76 # interpreter lives, change the value for FAQDIR to where your FAQ
77 # lives, and change the value for SRCDIR to where your faqwiz.py
78 # module lives. The faqconf.py and faqcust.py files live there, too.
82f490e2
AG
79diff -burN Python-2.3.3.orig/Tools/scripts/fixps.py Python-2.3.3/Tools/scripts/fixps.py
80--- Python-2.3.3.orig/Tools/scripts/fixps.py 2003-05-13 20:14:24.000000000 +0200
81+++ Python-2.3.3/Tools/scripts/fixps.py 2004-03-14 19:18:16.151498832 +0100
507f1b2b 82@@ -15,13 +15,13 @@
9d0d4238 83 print filename, ': can\'t open :', msg
507f1b2b 84 continue
85 line = f.readline()
86- if not re.match('^#! */usr/local/bin/python', line):
9d0d4238 87- print filename, ': not a /usr/local/bin/python script'
507f1b2b 88+ if not re.match('^#! */usr/bin/python', line):
9d0d4238 89+ print filename, ': not a /usr/bin/python script'
507f1b2b 90 f.close()
91 continue
92 rest = f.read()
93 f.close()
94- line = re.sub('/usr/local/bin/python',
95+ line = re.sub('/usr/bin/python',
96 '/usr/bin/env python', line)
9d0d4238 97 print filename, ':', `line`
98 f = open(filename, "w")
82f490e2
AG
99diff -burN Python-2.3.3.orig/Tools/scripts/parseentities.py Python-2.3.3/Tools/scripts/parseentities.py
100--- Python-2.3.3.orig/Tools/scripts/parseentities.py 2001-01-17 09:48:39.000000000 +0100
101+++ Python-2.3.3/Tools/scripts/parseentities.py 2004-03-14 19:19:23.258297048 +0100
102@@ -1,4 +1,4 @@
103-#!/usr/local/bin/python
104+#!/usr/bin/python
105 """ Utility for parsing HTML entity definitions available from:
106
107 http://www.w3.org/ as e.g.
This page took 0.090455 seconds and 4 git commands to generate.