Updated documentation for new Python 2.5 dependency

Removed old references of Python 2.4, together with compatibility
hacks.


git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3757 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2008-05-20 10:49:00 +00:00
parent ce1d41a5a0
commit 670a1df9b3
7 changed files with 46 additions and 28 deletions

4
debian/control vendored
View file

@ -14,7 +14,7 @@ Architecture: any
Depends: ${python:Depends}, ${shlibs:Depends}
XB-Python-Version: ${python:Versions}
Provides: ${python:Provides}
Suggests: apache | httpd, python-optcomplete (>= 1.2-5), python-profiler (>= 2.4.3-2), python-geoip (>= 1.2.1-2)
Suggests: apache | httpd, python-optcomplete (>= 1.2-5), python-geoip (>= 1.2.1-2)
Description: check websites and HTML documents for broken links
Provides a command line program and web interface to check links
of websites and HTML documents.
@ -31,4 +31,6 @@ Description: check websites and HTML documents for broken links
o robots.txt exclusion protocol support
o Cookie support
o i18n support
o HTML and CSS syntax check
o Antivirus check

View file

@ -23,6 +23,8 @@ Features
- username/password authorization for HTTP and FTP
- robots.txt exclusion protocol support
- i18n support
- HTML and CSS syntax check
- Antivirus check
- a command line interface
- a (Fast)CGI web interface (requires HTTP server)
@ -81,11 +83,11 @@ URL input is interactive.
Another way is executing on the command line.
If there is a file ``linkchecker.bat`` in your Python Scripts directory
you can run eg. ``c:\Python24\Scripts\linkchecker.bat``.
you can run eg. ``c:\Python25\Scripts\linkchecker.bat``.
If there is only a ``linkchecker`` file in your Python Scripts
directory, you have to run eg.
``c:\Python24\python.exe c:\Python24\Scripts\linkchecker``.
``c:\Python25\python.exe c:\Python25\Scripts\linkchecker``.
Running under Mac OS 9.x platforms

View file

@ -27,7 +27,7 @@ Requirements for Unix/Linux or Mac OS X
template from the source files, you will need xgettext with Python
support. This is available in gettext >= 0.12.
2. Python >= 2.4 from http://www.python.org/ with zlib support
2. Python >= 2.5 from http://www.python.org/ with zlib support
Be sure to also have installed the included distutils module.
On most distributions, the distutils module is included in
@ -36,17 +36,23 @@ Requirements for Unix/Linux or Mac OS X
3. *Optional, for bash-completion:*
optcomplete Python module from http://furius.ca/optcomplete/
4. *Optional, for HTML/CSS syntax checks:*
HTML tidy from http://utidylib.berlios.de/
cssutils from http://cthedot.de/cssutils/
5. *Optional, for displaying country codes:*
GeoIP from http://www.maxmind.com/app/python
Requirements for Windows
------------------------
1. Install Python >= 2.4 from http://www.python.org/
[http://www.python.org/ftp/python/2.4.4/python-2.4.4.msi]
or
[http://www.python.org/ftp/python/2.5.1/python-2.5.1.msi]
1. Install Python >= 2.5 from http://www.python.org/
[http://www.python.org/ftp/python/2.5.2/python-2.5.2.msi]
2. *Optional (color support for console)*
2. *Optional, for console color support:*
Wconio from http://newcenturycomputers.net/projects/wconio.html
[http://newcenturycomputers.net/projects/download.cgi/WConio-1.5.win32-py2.4.exe]
[http://newcenturycomputers.net/projects/download.cgi/WConio-1.5.win32-py2.5.exe]
3. *Only needed if you compile from source:*
install the MinGW suite from http://mingw.sourceforge.net/
@ -57,6 +63,7 @@ Requirements for Windows
b) MSYS
[http://downloads.sourceforge.net/mingw/MSYS-1.0.10.exe]
Setup for Unix/Linux or Mac OS X
--------------------------------
@ -100,9 +107,8 @@ Setup for Windows - the binary .exe installer:
Be sure to have installed all required windows software listed above.
2. Execute the ``linkchecker-x.xx.win32-py2.x.exe`` file and follow
the instructions. Python 2.4 users use the ``-py2.4.exe`` installer,
Python 2.5 users the ``-py2.5.exe`` installer.
2. Execute the ``linkchecker-x.xx.win32-py2.5.exe`` file and follow
the instructions.
Setup for Windows - compiling from source:
------------------------------------------
@ -113,16 +119,16 @@ Setup for Windows - compiling from source:
2. Preparing Python for the MinGW compiler
Search the file python24.dll in your windows folder.
Search the file python25.dll in your windows folder.
After you found it, launch MSYS. Change into the windows folder,
for example ``cd c:\winnt\system32``. Then execute
``pexports python24.dll > python24.def``.
``pexports python25.dll > python25.def``.
Then use the dlltool with
``dlltool --dllname python24.dll --def python24.def --output-lib
libpython24.a``.
``dlltool --dllname python25.dll --def python25.def --output-lib
libpython25.a``.
The resulting library has to be placed in the same directory as
python24.lib. (Should be the libs directory under your Python installation
directory, for example ``c:\Python24\Libs\``.)
python25.lib. (Should be the libs directory under your Python installation
directory, for example ``c:\Python25\Libs\``.)
3. Generate and execute the LinkChecker installer
@ -135,7 +141,7 @@ Setup for Windows - compiling from source:
binary installer.
This generates a binary installer
``dist\linkchecker-X.X.X.win32-py2.4.exe`` which you just have to
``dist\linkchecker-X.X.X.win32-py2.5.exe`` which you just have to
execute.
After installation

View file

@ -5,6 +5,17 @@
Upgrading
=========
Migrating from 4.x to 5.0
-------------------------
Python >= 2.5 is now required.
The CGI script access control variable ALLOWED_HOSTS has been renamed
to ALLOWED_CLIENTS.
Accordingly, the function linkcheck.lc_cgi.checkaccess() changed its
keyword parameters to from "hosts" and "servers" to "allowed_clients" and
"allowed_servers".
Migrating from 4.4 to 4.5
-------------------------

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python2.4
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
# Author: David Goodger

View file

@ -56,13 +56,8 @@ def decode (page):
if not ceheader.match(h):
headers[h] = page.info()[h]
newpage = urllib.addinfourl(fp, headers, page.geturl())
if hasattr(page, "code"):
# python 2.4 compatibility
newpage.code = page.code
if hasattr(page, "msg"):
# python 2.4 compatibility
newpage.msg = page.msg
page = newpage
newpage.code = page.code
newpage.msg = page.msg
return page

View file

@ -489,6 +489,8 @@ o username/password authorization for HTTP, FTP and Telnet
o robots.txt exclusion protocol support
o Cookie support
o i18n support
o HTML and CSS syntax check
o Antivirus check
o a command line interface
o a (Fast)CGI web interface (requires HTTP server)
""",