#!/usr/bin/python from distutils.core import setup import re import os verpat = re.compile("VERSION *= *\"(.*)\"") data = open("bm").read() m = verpat.search(data) if not m: sys.exit("error: can't find VERSION") VERSION = m.group(1) bash_dir = "share/bash-completion/completions" man_dir = "share/man" setup(name="bm", version = VERSION, description = "BuildManager - rpm package building helper", author = "Gustavo Niemeyer, Papoteur", author_email = "niemeyer@conectiva.com, papoteur@mageialinux-online.org", url = "http://gitweb.mageia.org/software/build-system/bm/", license = "GPLv2", long_description = """\ BuildManager, or bm, is a program that wraps and extends rpm while building packages. Its features allow one to batch process thousand of RPMS at once, controling logs, rpm and srpm moving, filtering the list of files, ignoring given packages, completely cleaning the build directories, and many other features. """, data_files=[ (bash_dir, ["bash-completion/bm"]), (os.path.join(man_dir, "man8"), ["man/bm.8"]), ], packages = ["BuildManager"], scripts = ["bm", "bmclean"], )