Skip to content

Commit 7d2ff21

Browse files
committed
build: remove protobuf generation code
1 parent 025a212 commit 7d2ff21

3 files changed

Lines changed: 0 additions & 40 deletions

File tree

buf.gen.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

buf.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

gen_proto.sh

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,9 @@
22

33
set -eou pipefail
44

5-
namespace=substrait.gen.proto
65
submodule_dir=./third_party/substrait
7-
src_dir="$submodule_dir"/proto
8-
tmp_dir=./buf_work_dir
9-
dest_dir=./src
106
extension_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
249
rm -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
3116
touch $extension_dir/__init__.py
32-
33-
# Remove the temporary work dir
34-
rm -rf "$tmp_dir"

0 commit comments

Comments
 (0)