daemon: Use automake to install python data files.

Includes other small changes.
This commit is contained in:
tgoff0 2015-05-26 17:33:57 +00:00
parent 666efe9788
commit 0ce17e8c52
4 changed files with 87 additions and 42 deletions

View file

@ -5,11 +5,6 @@ import os, glob
from distutils.core import setup
from core.constants import COREDPY_VERSION
# optionally pass CORE_CONF_DIR using environment variable
confdir = os.environ.get('CORE_CONF_DIR')
if confdir is None:
confdir="/etc/core"
setup(name = "core-python",
version = COREDPY_VERSION,
packages = [
@ -24,19 +19,6 @@ setup(name = "core-python",
"core.xen",
"core.services",
],
data_files = [("sbin", glob.glob("sbin/core*")),
(confdir, ["data/core.conf"]),
(confdir, ["data/xen.conf"]),
("share/core/examples", ["examples/controlnet_updown"]),
("share/core/examples",
glob.glob("examples/*.py")),
("share/core/examples/netns",
glob.glob("examples/netns/*[py,sh]")),
("share/core/examples/services",
glob.glob("examples/services/*")),
("share/core/examples/myservices",
glob.glob("examples/myservices/*")),
],
description = "Python components of CORE",
url = "http://www.nrl.navy.mil/itd/ncs/products/core",
author = "Boeing Research & Technology",