From 258e2579394cb7d315da25ecca47f9e300cf5b63 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 12 Oct 2015 16:47:24 -0400 Subject: [PATCH] Have confluent client do default path When installing package, put a profile.d change such that confluent is in the default path. --- confluent_client/MANIFEST.in | 1 + confluent_client/confluent_env.sh | 2 ++ confluent_client/setup.py.tmpl | 1 + 3 files changed, 4 insertions(+) create mode 100644 confluent_client/MANIFEST.in create mode 100644 confluent_client/confluent_env.sh diff --git a/confluent_client/MANIFEST.in b/confluent_client/MANIFEST.in new file mode 100644 index 00000000..2a8d2b80 --- /dev/null +++ b/confluent_client/MANIFEST.in @@ -0,0 +1 @@ +include confluent_env.sh \ No newline at end of file diff --git a/confluent_client/confluent_env.sh b/confluent_client/confluent_env.sh new file mode 100644 index 00000000..01eededd --- /dev/null +++ b/confluent_client/confluent_env.sh @@ -0,0 +1,2 @@ +PATH=/opt/confluent/bin:$PATH +export PATH diff --git a/confluent_client/setup.py.tmpl b/confluent_client/setup.py.tmpl index 0eb69827..59ba6142 100644 --- a/confluent_client/setup.py.tmpl +++ b/confluent_client/setup.py.tmpl @@ -8,4 +8,5 @@ setup( url='http://xcat.sf.net/', packages=['confluent'], scripts=['bin/confetty', 'bin/nodehealth', 'bin/nodeidentify', 'bin/nodepower', 'bin/nodesensors', 'bin/nodesetboot'], + data_files=[('/etc/profile.d', ['confluent_env.sh'])], )