def auto_dodoc(): from pisilinux.actionsapi.pisilinuxtools import dodoc docs = ('AUTHORS', 'CHANGELOG', 'CONTRIBUTORS', 'Change*', 'KNOWN_BUGS', 'MAINTAINERS', 'NEWS', 'README*', 'History.txt') for doc_glob in docs: for doc in glob(doc_glob): if not isEmpty(doc): dodoc(doc)
def install(parameters = '', pyVer = ''): '''does python setup.py install''' if system('python%s setup.py install --root=%s --no-compile -O0 %s' % (pyVer, get.installDIR(), parameters)): raise InstallError(_('Install failed.')) docFiles = ('AUTHORS', 'CHANGELOG', 'CONTRIBUTORS', 'COPYING*', 'COPYRIGHT', 'Change*', 'KNOWN_BUGS', 'LICENSE', 'MAINTAINERS', 'NEWS', 'README*', 'PKG-INFO') for docGlob in docFiles: for doc in glob.glob(docGlob): if not isEmpty(doc): dodoc(doc)