commit aa458a34a1c5250b36bc978a1fd14959f653d560
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Mon Dec 1 15:25:23 2014 +0100
setup.py: install recipes files
The setup.py script will now also install the contents of the recipes/
directory. This will be used to create a new lnst-recipes package.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
setup.py | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/setup.py b/setup.py
index 371fbc0..f3df092 100755
--- a/setup.py
+++ b/setup.py
@@ -20,6 +20,7 @@ rpazdera(a)redhat.com (Radek Pazdera)
import sys
import re
import gzip
+import os
from time import gmtime, strftime
from distutils.core import setup
@@ -103,6 +104,12 @@ project website <
https://fedorahosted.org/lnst>.
PACKAGES = ["lnst", "lnst.Common", "lnst.Controller",
"lnst.Slave"]
SCRIPTS = ["lnst-ctl", "lnst-slave"]
+RECIPE_FILES = []
+for dirpath, dirnames, files in os.walk("recipes/"):
+ if len(files) > 0:
+ RECIPE_FILES.append((CTL_RESOURCE_DIR + dirpath + "/",
+ [dirpath + "/" + f for f in files]))
+
TEST_MODULES = [
(CTL_MODULES_LOCATIONS,
["test_modules/DummyFailing.py",
@@ -161,7 +168,7 @@ BASH_COMP = [(BASH_COMP_DIR, ["install/lnst-ctl.bash",
SCHEMAS = [(CTL_RESOURCE_DIR, ["schema-recipe.rng",
"schema-sm.rng"])]
DATA_FILES = CONFIG + TEST_MODULES + MULTICAST_TEST_TOOLS + MAN_PAGES + \
- SCHEMAS + BASH_COMP
+ SCHEMAS + BASH_COMP + RECIPE_FILES
setup(name="lnst",
version="5",