]> git.pld-linux.org Git - packages/python3.git/blob - python3-pythonpath.patch
- tcl rebuild
[packages/python3.git] / python3-pythonpath.patch
1 --- Python-3.0.1/Lib/distutils/tests/test_build_scripts.py.wiget        2004-08-26 07:44:02.000000000 +0200
2 +++ Python-3.0.1/Lib/distutils/tests/test_build_scripts.py      2009-03-14 18:12:32.000000000 +0100
3 @@ -58,7 +58,7 @@ class BuildScriptsTestCase(support.Tempd
4                             "pass\n"))
5          expected.append("script2.py")
6          self.write_script(dir, "script2.py",
7 -                          ("#!/usr/bin/python\n"
8 +                          ("#!/usr/bin/python3\n"
9                             "# bogus script w/ Python sh-bang\n"
10                             "pass\n"))
11          expected.append("shell.sh")
12 --- Python-3.0.1/Lib/distutils/tests/test_install_scripts.py.wiget      2004-08-03 20:53:07.000000000 +0200
13 +++ Python-3.0.1/Lib/distutils/tests/test_install_scripts.py    2009-03-14 18:12:32.000000000 +0100
14 @@ -48,7 +48,7 @@ class InstallScriptsTestCase(support.Tem
15          write_script("script1.py", ("#! /usr/bin/env python2.3\n"
16                                      "# bogus script w/ Python sh-bang\n"
17                                      "pass\n"))
18 -        write_script("script2.py", ("#!/usr/bin/python\n"
19 +        write_script("script2.py", ("#!/usr/bin/python3\n"
20                                      "# bogus script w/ Python sh-bang\n"
21                                      "pass\n"))
22          write_script("shell.sh", ("#!/bin/sh\n"
23 --- Python-3.0.1/Lib/cgi.py.wiget       2008-12-04 21:11:57.000000000 +0100
24 +++ Python-3.0.1/Lib/cgi.py     2009-03-14 18:12:32.000000000 +0100
25 @@ -1,6 +1,6 @@
26 -#! /usr/local/bin/python
27 +#! /usr/bin/python3
28  
29 -# NOTE: the above "/usr/local/bin/python" is NOT a mistake.  It is
30 +# NOTE: the above "/usr/bin/python3" is NOT a mistake.  It is
31  # intentionally NOT "/usr/bin/env python".  On many systems
32  # (e.g. Solaris), /usr/local/bin is not in $PATH as passed to CGI
33  # scripts, and /usr/local/bin is the default directory where Python is
34 --- Python-3.0.1/Tools/pybench/pybench.py.wiget 2009-02-07 18:28:46.000000000 +0100
35 +++ Python-3.0.1/Tools/pybench/pybench.py       2009-03-14 18:12:32.000000000 +0100
36 @@ -1,4 +1,4 @@
37 -#!/usr/local/bin/python -O
38 +#!/usr/bin/python3 -O
39  
40  """ A Python Benchmark Suite
41  
42 --- Python-3.0.1/Tools/scripts/fixps.py.wiget   2007-08-03 19:06:41.000000000 +0200
43 +++ Python-3.0.1/Tools/scripts/fixps.py 2009-03-14 18:12:32.000000000 +0100
44 @@ -15,13 +15,13 @@ def main():
45              print(filename, ': can\'t open :', msg)
46              continue
47          line = f.readline()
48 -        if not re.match('^#! */usr/local/bin/python', line):
49 -            print(filename, ': not a /usr/local/bin/python script')
50 +        if not re.match('^#! */usr/bin/python3', line):
51 +            print(filename, ': not a /usr/bin/python3 script')
52              f.close()
53              continue
54          rest = f.read()
55          f.close()
56 -        line = re.sub('/usr/local/bin/python',
57 +        line = re.sub('/usr/bin/python3',
58                        '/usr/bin/env python', line)
59          print(filename, ':', repr(line))
60          f = open(filename, "w")
61 --- Python-3.0.1/Doc/README.txt.wiget   2009-02-13 00:46:00.000000000 +0100
62 +++ Python-3.0.1/Doc/README.txt 2009-03-14 18:12:32.000000000 +0100
63 @@ -37,7 +37,7 @@ the top-level index `build/html/index.ht
64  To use a Python interpreter that's not called ``python``, use the standard
65  way to set Makefile variables, using e.g. ::
66  
67 -   make html PYTHON=/usr/bin/python2.5
68 +   make html PYTHON=/usr/bin/python3
69  
70  Available make targets are:
71  
This page took 0.067356 seconds and 3 git commands to generate.