reloc/python3: archive rpm build script in the relocatable package, build rpm using the script

Since we archive rpm/deb build script on relocatable package and build
rpm/deb using the script, so align python relocatable package too.

Also added SCYLLA-RELOCATABLE-FILE, SCYLLA-RELEASE-FILE and SCYLLA-VERSION-FILE
since these files are required for relocatable package.
This commit is contained in:
Takuya ASADA
2019-02-21 11:49:26 +00:00
parent b1283b23bb
commit 4fed4fecf6
3 changed files with 84 additions and 18 deletions

View File

@@ -228,6 +228,11 @@ packages= ["python3"] + args.modules
file_list = generate_file_list(dependencies(packages))
ar = tarfile.open(args.output, mode='w|gz')
pathlib.Path('build/SCYLLA-RELOCATABLE-FILE').touch()
ar.add('build/SCYLLA-RELOCATABLE-FILE', arcname='SCYLLA-RELOCATABLE-FILE')
ar.add('dist/redhat/python3')
ar.add('build/SCYLLA-RELEASE-FILE', arcname='SCYLLA-RELEASE-FILE')
ar.add('build/SCYLLA-VERSION-FILE', arcname='SCYLLA-VERSION-FILE')
for f in file_list:
copy_file_to_python_env(ar, f)