Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Achal Shah <[email protected]>
  • Loading branch information
achals committed Jun 27, 2022
1 parent 4bf0c04 commit 7c4824f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ 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", "install", "golang.org/x/tools/cmd/goimports"],
env={"PATH": bin_path, **go_env})
Expand All @@ -432,7 +435,7 @@ def build_extension(self, ext: Extension):
env={"PATH": bin_path, **go_env})
subprocess.check_call(["go", "mod", "tidy"],
env={"PATH": bin_path, **go_env})
r = subprocess.check_call(
subprocess.check_call(
[
"gopy",
"build",
Expand Down

0 comments on commit 7c4824f

Please sign in to comment.