Skip to content

Commit

Permalink
Improve Python Protobuf speed
Browse files Browse the repository at this point in the history
upb was being included in the bundle, but not found at run time due
to src files being embedded in the binary.
  • Loading branch information
dae committed Oct 4, 2023
1 parent 42603da commit d7ff997
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build/runner/src/bundle/folder.rs
Expand Up @@ -143,4 +143,14 @@ fn copy_binary_and_pylibs(folder_root: &Utf8Path) {
&with_slash(unix_path(&extra_files)),
&with_slash(unix_path(folder_root)),
]));
let google_py = if cfg!(windows) {
folder_root.join("../pyenv/lib/site-packages/google")
} else {
folder_root.join("../pyenv/lib/python3.9/site-packages/google")
};
run_command(Command::new("rsync").args([
"-a",
&unix_path(&google_py),
&with_slash(unix_path(&folder_root.join("lib"))),
]));
}
1 change: 1 addition & 0 deletions qt/bundle/pyoxidizer.bzl
Expand Up @@ -16,6 +16,7 @@ excluded_source_prefixes = [
"PyQt6",
"pip",
"setuptools",
"google"
]

excluded_resource_suffixes = [
Expand Down

0 comments on commit d7ff997

Please sign in to comment.