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:
parent
42603daa16
commit
d7ff99780e
@ -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"))),
|
||||
]));
|
||||
}
|
||||
|
@ -16,6 +16,7 @@ excluded_source_prefixes = [
|
||||
"PyQt6",
|
||||
"pip",
|
||||
"setuptools",
|
||||
"google"
|
||||
]
|
||||
|
||||
excluded_resource_suffixes = [
|
||||
|
Loading…
Reference in New Issue
Block a user