lorax/setup.py

50 lines
1.5 KiB
Python
Raw Normal View History

2013-07-24 20:41:03 +00:00
#!/usr/bin/python
2010-02-23 13:20:05 +00:00
from distutils.core import setup
import os
import sys
2010-10-12 16:23:29 +00:00
# config file
data_files = [("/etc/lorax", ["etc/lorax.conf"]),
("/etc/lorax", ["etc/configure.conf"]),
("/usr/lib/systemd/system", ["systemd/lorax-composer.service"])]
2010-10-12 16:23:29 +00:00
# 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
2011-12-16 23:48:02 +00:00
data_files.append(("/usr/sbin", ["src/sbin/lorax", "src/sbin/mkefiboot",
"src/sbin/livemedia-creator", "src/sbin/lorax-composer"]))
data_files.append(("/usr/bin", ["src/bin/image-minimizer",
"src/bin/mk-s390-cdboot"]))
# get the version
sys.path.insert(0, "src")
try:
import pylorax.version
except ImportError:
vernum = "devel"
else:
vernum = pylorax.version.num
finally:
sys.path = sys.path[1:]
2010-02-23 13:20:05 +00:00
setup(name="lorax",
version=vernum,
2010-02-23 13:20:05 +00:00
description="Lorax",
long_description="Tools for creating bootable images, including the Anaconda boot.iso",
author="Brian C. Lane, Will Woods, Martin Gracik",
author_email="bcl@redhat.com",
url="https://rhinstaller.github.io/lorax/",
download_url="https://github.com/rhinstaller/lorax/releases",
2010-02-23 13:20:05 +00:00
license="GPLv2+",
packages=["pylorax", "pylorax.api"],
2010-02-23 13:20:05 +00:00
package_dir={"" : "src"},
data_files=data_files
)