mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 11:10:40 +00:00
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 <syuu@scylladb.com> Message-Id: <20190516094329.13273-1-syuu@scylladb.com>
This commit is contained in:
@@ -234,6 +234,11 @@ ar.add('dist/redhat/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)
|
||||
|
||||
Reference in New Issue
Block a user