mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-13 11:22:01 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user