Improve Python Protobuf speed

upb was being included in the bundle, but not found at run time due
to src files being embedded in the binary.
This commit is contained in:
Damien Elmes 2023-10-04 13:17:03 +10:00
parent 42603daa16
commit d7ff99780e
2 changed files with 11 additions and 0 deletions

View File

@ -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"))),
]));
}

View File

@ -16,6 +16,7 @@ excluded_source_prefixes = [
"PyQt6",
"pip",
"setuptools",
"google"
]
excluded_resource_suffixes = [