1ab4a60bc7
Also fixed the modules symlink
32 lines
849 B
Python
32 lines
849 B
Python
#! /usr/bin/env python
|
|
|
|
from distutils.core import setup
|
|
from glob import glob
|
|
import os
|
|
|
|
|
|
data_files = [("/etc/lorax", glob("etc/config.*")),
|
|
("/etc/lorax", ["etc/ignore_errors"]),
|
|
("/etc/lorax/templates", glob("etc/templates/*"))
|
|
]
|
|
|
|
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)]))
|
|
|
|
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"},
|
|
scripts=["src/bin/lorax"],
|
|
data_files=data_files
|
|
)
|