setup.py fixed

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@92 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2000-05-23 21:49:48 +00:00
parent af05fad1d6
commit b6a205ccba
5 changed files with 14 additions and 12 deletions

View file

@ -2,12 +2,11 @@
==========================
Requirements:
You need Python >= 1.5.2
You get Python from http://www.python.org
You need Python >= 1.5.2 from http://www.python.org/
Optionally packages:
Distutils >= 0.8.3 from http://www.python.org/sigs/distutils-sig/
OpenSSL from http://www.openssl.org
OpenSSL from http://www.openssl.org/
You will need Perl for Win32 (available from
http://www.activestate.com/ActivePerl) if you want to install OpenSSL
on Windows!
@ -27,6 +26,7 @@ Windows users copy 'linkchecker.bat.tmpl' to 'linkchecker.bat' and
replace $install_scripts with the distribution directory.
After all, put the distribution directory in your path.
Running LinkChecker:
Type "linkchecker" followed by your URLs you want to check.
Type "linkchecker -h" for help.

4
README
View file

@ -7,9 +7,9 @@ Features
--------
o recursive checking
o multithreaded
o output can be colored or normal text, HTML, SQL, CSV or a GML sitemap
o output can be colored or normal text, HTML, SQL, CSV or a GML sitemap
graph
o HTTP/1.1, HTTPS, FTP, mailto:, news:, Gopher, Telnet and local file links
o HTTP/1.1, HTTPS, FTP, mailto:, news:, Gopher, Telnet and local file links
are supported
Javascript links are currently ignored
o restrict link checking with regular expression filters for URLs

2
debian/rules vendored
View file

@ -34,7 +34,7 @@ install: build
dh_installdirs
# ha! the root option finally made it into distutils
./setup.py install --root=`pwd`/debian/tmp
install -c -m 644 linkcheckerrc debian/tmp/etc/
install -c -m 644 linkcheckerrc debian/tmp/etc
install -c -m 644 DNS/README debian/tmp/usr/share/doc/$(PACKAGE)/README.dns

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python -O
import sys

View file

@ -45,7 +45,7 @@ class LCDistribution(Distribution):
"Use the -I option for the build_ext command.")
def has_ssl(self):
incls = self.find_command_obj("build_ext").include_dirs
incls = self.get_command_obj("build_ext").include_dirs
incls = (incls and string.split(incls, os.pathsep)) or []
for d in incls + self.default_include_dirs:
if os.path.exists(os.path.join(d, "ssl.h")):
@ -54,7 +54,7 @@ class LCDistribution(Distribution):
def replace_vars(self):
inst = self.find_command_obj("install")
inst = self.get_command_obj("install")
inst.ensure_ready()
t = Template("linkcheck/__init__.py.tmpl")
f = open("linkcheck/__init__.py","w")
@ -66,6 +66,7 @@ class LCDistribution(Distribution):
f.write(t.fill_in({"install_scripts": inst.install_scripts}))
f.close()
self.scripts.append('linkchecker.bat')
self.scripts.append('linkcheckerrc')
setup (name = "linkchecker",
@ -94,7 +95,8 @@ o internationalization support (currently english and german)
distclass = LCDistribution,
packages = ['','DNS','linkcheck'],
scripts = ['linkchecker'],
data = ['locale/de/LC_MESSAGES/linkcheck.mo',
'locale/de/LC_MESSAGES/linkcheck.po',
],
data_files = [('locale/de/LC_MESSAGES',
['locale/de/LC_MESSAGES/linkcheck.mo',
'locale/de/LC_MESSAGES/linkcheck.po']),
],
)