-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpython-build-fixes.patch
More file actions
32 lines (27 loc) · 1.17 KB
/
python-build-fixes.patch
File metadata and controls
32 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
32
diff --git a/build/configure/src/python.rs b/build/configure/src/python.rs
index e43bceeb3..d2675fdb3 100644
--- a/build/configure/src/python.rs
+++ b/build/configure/src/python.rs
@@ -81,9 +81,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"
}
@@ -101,7 +99,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) {