add MANIFEST for source distributions

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3478 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2006-09-22 10:16:22 +00:00
parent 980fe1ea31
commit e1b2fe298b
2 changed files with 13 additions and 1 deletions

View file

@ -1,4 +1,4 @@
include README INSTALL LICENSE TODO MANIFEST.in MANIFEST ChangeLog
include README INSTALL LICENSE TODO ChangeLog
include config/linkchecker-completion config/create.sql
include config/linkcheckerrc config/linkcheck-cron.sh
include config/logging.conf config/pycheckrc config/pylintrc

View file

@ -39,6 +39,7 @@ from distutils.command.install_data import install_data
from distutils.command.build_ext import build_ext
from distutils.command.build import build
from distutils.command.clean import clean
from distutils.command.sdist import sdist
from distutils.dir_util import remove_tree
from distutils.file_util import write_file
from distutils.sysconfig import get_python_version
@ -441,6 +442,16 @@ class MyClean (clean, object):
clean.run(self)
class MySdist (sdist, object):
"""
Custom sdist command.
"""
def get_file_list (self):
super(MySdist, self).get_file_list()
self.filelist.append("MANIFEST")
# global include dirs
include_dirs = []
# global macros
@ -543,6 +554,7 @@ o a (Fast)CGI web interface (requires HTTP server)
'build_ext': MyBuildExt,
'build': MyBuild,
'clean': MyClean,
'sdist': MySdist,
},
packages = ['linkcheck', 'linkcheck.logger', 'linkcheck.checker',
'linkcheck.director', 'linkcheck.configuration',