From 5538f99376c60acccd430e196bc36c9c73ed5460 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 25 Apr 2022 16:47:19 -0400 Subject: [PATCH] Support older setuptools for license packaging --- confluent_client/setup.py.tmpl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/confluent_client/setup.py.tmpl b/confluent_client/setup.py.tmpl index 9a12fc58..a3e4e122 100644 --- a/confluent_client/setup.py.tmpl +++ b/confluent_client/setup.py.tmpl @@ -1,7 +1,9 @@ from setuptools import setup import os -data_files = [('/etc/profile.d', ['confluent_env.sh', 'confluent_env.csh'])] +data_files = [('/etc/profile.d', ['confluent_env.sh', 'confluent_env.csh']), + ('/opt/confluent/share/licenses/confluent_client/', ['LICENSE']) + ] try: scriptlist = ['bin/{0}'.format(d) for d in os.listdir('bin/')] data_files.append(('/opt/confluent/share/man/man1', ['man/man1/' + x for x in os.listdir('man/man1')])) @@ -17,7 +19,6 @@ setup( author_email='jjohnson2@lenovo.com', url='http://xcat.sf.net/', packages=['confluent'], - license_files=['LICENSE'], scripts=scriptlist, - data_files=data_files, + data_files=data_files + ['LICENSE'], )