From 15c84e8a9ba9f55181184a40719d037c021c21fd Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 27 Jan 2017 15:23:16 -0500 Subject: [PATCH] Modify setup.py.tmpl to be adaptive This should prevent forgetting to add content to setup.py moving forward. --- confluent_client/setup.py.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/confluent_client/setup.py.tmpl b/confluent_client/setup.py.tmpl index 3fe14bc6..f8768bd5 100644 --- a/confluent_client/setup.py.tmpl +++ b/confluent_client/setup.py.tmpl @@ -1,4 +1,7 @@ from setuptools import setup +import os + +scriptlist = ['bin/{0}'.format(d) for d in os.listdir('bin/')] setup( name='confluent_client', @@ -7,9 +10,6 @@ setup( author_email='jjohnson2@lenovo.com', url='http://xcat.sf.net/', packages=['confluent'], - scripts=['bin/confetty', 'bin/nodeconsole', 'bin/nodeeventlog', - 'bin/nodefirmware', 'bin/nodehealth', 'bin/nodeidentify', - 'bin/nodeinventory', 'bin/nodelist', 'bin/nodepower', - 'bin/nodesensors', 'bin/nodesetboot', 'bin/noderun'], + scripts=scriptlist, data_files=[('/etc/profile.d', ['confluent_env.sh'])], )