mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-24 01:40:23 +00:00
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@75 e7d03fd6-7b0d-0410-9947-9c21f3af8025
40 lines
1.4 KiB
Python
Executable file
40 lines
1.4 KiB
Python
Executable file
#!/usr/bin/env python
|
|
from distutils.core import setup
|
|
from distutils.dist import Distribution
|
|
from Template import Template
|
|
import sys
|
|
|
|
# Hack for linkchecker.bat
|
|
class LCDistribution(Distribution):
|
|
def run_commands (self):
|
|
if sys.platform=='win32':
|
|
inst = self.find_command_obj("install")
|
|
inst.ensure_ready()
|
|
t = Template("linkchecker.bat.tmpl")
|
|
f = open("linkchecker.bat","w")
|
|
f.write(t.fill_in({"path_to_linkchecker": inst.install_scripts}))
|
|
f.close()
|
|
self.scripts.append('linkchecker.bat')
|
|
for cmd in self.commands:
|
|
self.run_command (cmd)
|
|
|
|
|
|
setup (name = "linkchecker",
|
|
version = "1.2.3",
|
|
description = "check links of HTML pages",
|
|
author = "Bastian Kleineidam",
|
|
author_email = "calvin@users.sourceforge.net",
|
|
url = "http://linkchecker.sourceforge.net/",
|
|
licence = "GPL",
|
|
|
|
distclass = LCDistribution,
|
|
packages = ['','DNS','linkcheck'],
|
|
# uncomment ext_modules to enable HTTPS support
|
|
# you must have an SSL library and the Python header
|
|
# files installed
|
|
ext_modules = [('ssl', {'sources': ['ssl.c'],
|
|
'include_dirs': ['/usr/include/openssl'],
|
|
'library_dirs': ['/usr/lib'],
|
|
'libs': ['ssl']})],
|
|
scripts = ['linkchecker'],
|
|
)
|