mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
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
2 changed files with 11 additions and 0 deletions
|
@ -143,4 +143,14 @@ fn copy_binary_and_pylibs(folder_root: &Utf8Path) {
|
||||||
&with_slash(unix_path(&extra_files)),
|
&with_slash(unix_path(&extra_files)),
|
||||||
&with_slash(unix_path(folder_root)),
|
&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",
|
"PyQt6",
|
||||||
"pip",
|
"pip",
|
||||||
"setuptools",
|
"setuptools",
|
||||||
|
"google"
|
||||||
]
|
]
|
||||||
|
|
||||||
excluded_resource_suffixes = [
|
excluded_resource_suffixes = [
|
||||||
|
|
Loading…
Reference in a new issue