2015-02-09 16:48:22 +00:00
|
|
|
#!/usr/bin/python2
|
2008-10-05 06:05:53 +00:00
|
|
|
|
2010-02-23 13:20:05 +00:00
|
|
|
from distutils.core import setup
|
2010-04-02 12:18:53 +00:00
|
|
|
import os
|
2011-07-29 12:08:03 +00:00
|
|
|
import sys
|
2008-10-05 06:05:53 +00:00
|
|
|
|
|
|
|
|
2010-10-12 16:23:29 +00:00
|
|
|
# config file
|
2018-05-04 18:47:43 +00:00
|
|
|
data_files = [("/etc/lorax", ["etc/lorax.conf"]),
|
|
|
|
("/etc/lorax", ["etc/composer.conf"]),
|
2018-04-26 21:29:12 +00:00
|
|
|
("/usr/lib/systemd/system", ["systemd/lorax-composer.service",
|
|
|
|
"systemd/lorax-composer.socket"]),
|
2019-01-18 20:06:18 +00:00
|
|
|
("/usr/lib/tmpfiles.d/", ["systemd/lorax-composer.conf",
|
|
|
|
"systemd/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-12-16 23:48:02 +00:00
|
|
|
data_files.append(("/usr/sbin", ["src/sbin/lorax", "src/sbin/mkefiboot",
|
2018-05-04 18:47:43 +00:00
|
|
|
"src/sbin/livemedia-creator", "src/sbin/lorax-composer"]))
|
|
|
|
data_files.append(("/usr/bin", ["src/bin/image-minimizer",
|
|
|
|
"src/bin/mk-s390-cdboot",
|
2018-10-08 16:23:47 +00:00
|
|
|
"src/bin/composer-cli"]))
|
2010-12-17 16:04:04 +00:00
|
|
|
|
2011-07-29 12:08:03 +00:00
|
|
|
# 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",
|
2011-07-29 12:08:03 +00:00
|
|
|
version=vernum,
|
2010-02-23 13:20:05 +00:00
|
|
|
description="Lorax",
|
2018-05-04 18:47:43 +00:00
|
|
|
long_description="Tools for creating bootable images, including the Anaconda boot.iso",
|
2015-05-08 23:52:18 +00:00
|
|
|
author="Martin Gracik, Will Woods <wwoods@redhat.com>, Brian C. Lane <bcl@redhat.com>",
|
2018-05-04 18:47:43 +00:00
|
|
|
author_email="bcl@redhat.com",
|
|
|
|
url="http://www.github.com/weldr/lorax/",
|
|
|
|
download_url="http://www.github.com/weldr/lorax/releases/",
|
2010-02-23 13:20:05 +00:00
|
|
|
license="GPLv2+",
|
2018-05-04 18:47:43 +00:00
|
|
|
packages=["pylorax", "pylorax.api", "composer", "composer.cli"],
|
2010-02-23 13:20:05 +00:00
|
|
|
package_dir={"" : "src"},
|
|
|
|
data_files=data_files
|
|
|
|
)
|