Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit e17b071

Browse files
Denys Smirnovdennwc
authored andcommitted
remove dependency on go tool and gopath env; fixes #149
There appears to be no usages of GOPATH variable that is required by setup.py. It may be a leftover from test versions of the client. Thus, we can safely remove the checks for GOPATH. Signed-off-by: Denys Smirnov <[email protected]>
1 parent 18f8e75 commit e17b071

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

setup.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,6 @@ def get_libuast():
134134
if not GET_LIBUAST:
135135
return
136136

137-
gopath = os.environ.get("GOPATH")
138-
if not gopath:
139-
gopath = subprocess.check_output(
140-
['go', 'env', 'GOPATH']).decode("utf-8").strip()
141-
if not gopath:
142-
log.error("GOPATH must be set")
143-
sys.exit(1)
144-
145137
py_dir = os.getcwd()
146138
local_libuast = j(py_dir, "bblfsh", "libuast")
147139
mkdir(local_libuast)

0 commit comments

Comments
 (0)