7827ba112c
This updates things for python3, and adds 2 subpackages to pull in dependencies needed by lmc when running with virt-install or --no-virt with anaconda.
46 lines
1.2 KiB
Python
46 lines
1.2 KiB
Python
#!/usr/bin/python2
|
|
|
|
from distutils.core import setup
|
|
import os
|
|
import sys
|
|
|
|
|
|
# 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", "src/sbin/mkefiboot",
|
|
"src/sbin/livemedia-creator"]))
|
|
data_files.append(("/usr/bin", ["src/bin/image-minimizer"]))
|
|
|
|
# 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:]
|
|
|
|
|
|
setup(name="lorax",
|
|
version=vernum,
|
|
description="Lorax",
|
|
long_description="",
|
|
author="Martin Gracik, Will Woods <wwoods@redhat.com>, Brian C. Lane <bcl@redhat.com>",
|
|
url="http://www.github.com/rhinstaller/lorax/",
|
|
download_url="http://www.github.com/rhinstaller/lorax/releases/",
|
|
license="GPLv2+",
|
|
packages=["pylorax"],
|
|
package_dir={"" : "src"},
|
|
data_files=data_files
|
|
)
|