mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-05 05:04:46 +00:00
no copy file hack, and documentation
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1769 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
503cc0ad11
commit
d874023a6f
1 changed files with 3 additions and 7 deletions
10
setup.py
10
setup.py
|
|
@ -116,17 +116,12 @@ class MyInstallData (install_data, object):
|
|||
mode |= 044
|
||||
os.chmod(path, mode)
|
||||
|
||||
def copy_file (self, filename, dirname):
|
||||
(out, _) = super(MyInstallData, self).copy_file(filename, dirname)
|
||||
# match for man pages
|
||||
if re.search(r'/man/man\d/.+\.\d$', out):
|
||||
return (out+".gz", _)
|
||||
return (out, _)
|
||||
|
||||
|
||||
class MyDistribution (distklass, object):
|
||||
"""custom distribution class generating config file"""
|
||||
|
||||
def run_commands (self):
|
||||
"""generate config file and run commands"""
|
||||
cwd = os.getcwd()
|
||||
data = []
|
||||
data.append('config_dir = %r' % os.path.join(cwd, "config"))
|
||||
|
|
@ -135,6 +130,7 @@ class MyDistribution (distklass, object):
|
|||
super(MyDistribution, self).run_commands()
|
||||
|
||||
def get_conf_filename (self, directory):
|
||||
"""get name for config file"""
|
||||
return os.path.join(directory, "_%s_configdata.py"%self.get_name())
|
||||
|
||||
def create_conf_file (self, data, directory=None):
|
||||
|
|
|
|||
Loading…
Reference in a new issue