File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
33set -eou pipefail
44
5- namespace=substrait.gen.proto
65submodule_dir=./third_party/substrait
7- src_dir=" $submodule_dir " /proto
8- tmp_dir=./buf_work_dir
9- dest_dir=./src
106extension_dir=./src/substrait/extension_files
117
12- # Prefix the protobuf files with a unique configuration to prevent namespace conflicts
13- # with other substrait packages. Save output to the work dir.
14- python " $submodule_dir " /tools/proto_prefix.py " $tmp_dir " " $namespace " " $src_dir "
15-
16- # Remove the old python protobuf files
17- rm -rf " $dest_dir /substrait/gen/proto"
18-
19- # Generate the new python protobuf files
20- buf generate
21- find " $dest_dir /substrait/gen" -type d -exec touch {}/__init__.py \;
22-
238# Remove the old extension files
249rm -rf " $extension_dir "
2510
@@ -29,6 +14,3 @@ find "$extension_dir" -type f -exec chmod u+rw {} +
2914
3015# Ensure there's an __init__.py file in the extension directory
3116touch $extension_dir /__init__.py
32-
33- # Remove the temporary work dir
34- rm -rf " $tmp_dir "
You can’t perform that action at this time.
0 commit comments