lorax/setup.py
Martin Gracik 3a0ed30cca Setup and spec file changes
Added the license files and executable.
Marked lorax.conf as config.
2010-12-17 17:04:04 +01:00

33 lines
777 B
Python

#! /usr/bin/env python
from distutils.core import setup
from glob import glob
import os
# config file
data_files = [("/etc/lorax", ["etc/lorax.conf"])]
# shared files
for root, dnames, fnames in os.walk("share"):
for fname in fnames:
data_files.append((root.replace("share", "/usr/share/lorax", 1),
[os.path.join(root, fname)]))
# executable
data_files.append(("/usr/sbin", ["src/sbin/lorax"]))
setup(name="lorax",
version="0.1",
description="Lorax",
long_description="",
author="Martin Gracik",
author_email="mgracik@redhat.com",
url="http://",
download_url="http://",
license="GPLv2+",
packages=["pylorax"],
package_dir={"" : "src"},
data_files=data_files
)