Skip to content

Commit 6716409

Browse files
committed
fix: Stop running go mod tidy in setup.py
Signed-off-by: Achal Shah <[email protected]> This fixes a problem similar to pypa/cibuildwheel#189 (comment). Running `go mod tidy` was updating `go.mod` and `go.sum`, which was causeing cibuildwheel to produce dirty builds. This comamnd isn't really even needed, so nixing it.
1 parent ba81a31 commit 6716409

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,6 @@ def build_extension(self, ext: Extension):
434434
env={"PATH": bin_path, **go_env})
435435
subprocess.check_call(["go", "install", "github.com/go-python/gopy"],
436436
env={"PATH": bin_path, **go_env})
437-
subprocess.check_call(["go", "mod", "tidy"],
438-
env={"PATH": bin_path, **go_env})
439437
subprocess.check_call(
440438
[
441439
"gopy",

0 commit comments

Comments
 (0)