2010-02-23 13:20:05 +00:00
|
|
|
#! /usr/bin/env python
|
2008-10-05 06:05:53 +00:00
|
|
|
|
2010-02-23 13:20:05 +00:00
|
|
|
from distutils.core import setup
|
|
|
|
from glob import glob
|
2010-04-02 12:18:53 +00:00
|
|
|
import os
|
2008-10-05 06:05:53 +00:00
|
|
|
|
|
|
|
|
2010-10-12 16:23:29 +00:00
|
|
|
# config file
|
|
|
|
data_files = [("/etc/lorax", ["etc/lorax.conf"])]
|
2008-10-05 06:05:53 +00:00
|
|
|
|
2010-10-12 16:23:29 +00:00
|
|
|
# shared files
|
2010-04-02 12:18:53 +00:00
|
|
|
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)]))
|
2008-10-05 05:46:04 +00:00
|
|
|
|
2010-12-17 16:04:04 +00:00
|
|
|
# executable
|
2011-05-10 02:56:14 +00:00
|
|
|
data_files.append(("/usr/sbin", ["src/sbin/lorax", "src/sbin/mkefiboot"]))
|
2010-12-17 16:04:04 +00:00
|
|
|
|
2010-02-23 13:20:05 +00:00
|
|
|
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
|
|
|
|
)
|