From f32aea383465a73970aebf7171587f8030f780e9 Mon Sep 17 00:00:00 2001 From: Takuya ASADA Date: Thu, 16 May 2019 18:43:29 +0900 Subject: [PATCH] reloc/python3: add license files on relocatable python3 package It's better to have license files on our python3 distribution. Signed-off-by: Takuya ASADA Message-Id: <20190516094329.13273-1-syuu@scylladb.com> (cherry picked from commit 4b08a3f906cb856392fc4e46afd9e9b78948a319) --- scripts/create-relocatable-package-python3.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/create-relocatable-package-python3.py b/scripts/create-relocatable-package-python3.py index 6b9d42bb59..dd526d3e59 100755 --- a/scripts/create-relocatable-package-python3.py +++ b/scripts/create-relocatable-package-python3.py @@ -235,6 +235,11 @@ ar.add('dist/debian/python3') ar.add('build/python3/SCYLLA-RELEASE-FILE', arcname='SCYLLA-RELEASE-FILE') ar.add('build/python3/SCYLLA-VERSION-FILE', arcname='SCYLLA-VERSION-FILE') ar.add('build/SCYLLA-PRODUCT-FILE', arcname='SCYLLA-PRODUCT-FILE') +for p in ['pyhton3-libs'] + packages: + pdir = pathlib.Path('/usr/share/licenses/{}/'.format(p)) + if pdir.exists(): + for f in pdir.glob('*'): + ar.add(f, arcname='licenses/{}/{}'.format(p, f.name)) for f in file_list: copy_file_to_python_env(ar, f)