-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpython-build-fixes.patch
More file actions
31 lines (27 loc) · 1.17 KB
/
python-build-fixes.patch
File metadata and controls
31 lines (27 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/build/configure/src/python.rs b/build/configure/src/python.rs
index 865e4dd02..4af65c8a0 100644
--- a/build/configure/src/python.rs
+++ b/build/configure/src/python.rs
@@ -80,9 +80,7 @@ pub struct GenPythonProto {
impl BuildAction for GenPythonProto {
fn command(&self) -> &str {
"$protoc $
- --plugin=protoc-gen-mypy=$protoc-gen-mypy $
--python_out=$builddir/pylib $
- --mypy_out=$builddir/pylib $
-Iproto $in"
}
@@ -100,7 +98,6 @@ impl BuildAction for GenPythonProto {
.collect();
build.add_inputs("in", &self.proto_files);
build.add_inputs("protoc", inputs![":protoc_binary"]);
- build.add_inputs("protoc-gen-mypy", inputs![":pyenv:protoc-gen-mypy"]);
build.add_outputs("", python_outputs);
}
@@ -119,7 +116,7 @@ pub struct BuildWheel {
impl BuildAction for BuildWheel {
fn command(&self) -> &str {
- "$uv build --wheel --out-dir=$out_dir --project=$project_dir"
+ "$uv build --wheel --out-dir=$out_dir --project=$project_dir --build-constraint /run/build/anki/uv-constraints.txt"
}
fn files(&mut self, build: &mut impl FilesHandle) {