-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Go install gopy instead using go mod tidy (#2863)
* fix: Go install gopy instead using go mod tidy Signed-off-by: Achal Shah <[email protected]> * remove newline Signed-off-by: Achal Shah <[email protected]> * fix Signed-off-by: Achal Shah <[email protected]> * fix Signed-off-by: Achal Shah <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -424,8 +424,18 @@ def build_extension(self, ext: Extension): | |
subprocess.check_output(["go", "env", "-json"]).decode("utf-8").strip() | ||
) | ||
|
||
print(f"Go env: {go_env}") | ||
print(f"CWD: {os.getcwd()}") | ||
|
||
destination = os.path.dirname(os.path.abspath(self.get_ext_fullpath(ext.name))) | ||
subprocess.check_call(["go", "mod", "tidy"], env={"PATH": bin_path, **go_env}) | ||
subprocess.check_call(["go", "install", "golang.org/x/tools/cmd/goimports"], | ||
env={"PATH": bin_path, **go_env}) | ||
subprocess.check_call(["go", "get", "github.com/go-python/[email protected]"], | ||
env={"PATH": bin_path, **go_env}) | ||
subprocess.check_call(["go", "install", "github.com/go-python/gopy"], | ||
env={"PATH": bin_path, **go_env}) | ||
subprocess.check_call(["go", "mod", "tidy"], | ||
env={"PATH": bin_path, **go_env}) | ||
subprocess.check_call( | ||
[ | ||
"gopy", | ||
|