'Called before go modules\' install() methods.
In most cases, extensions will only need to set GOPATH and use go::
env = os.environ
env[\'GOPATH\'] = self.source_path + \':\' + env[\'GOPATH\']
go(\'get\', \'<package>\', env=env)
shutil.copytree(\'bin\', os.path.join(prefix, \'/bin\'))'

def setup_dependent_package(self, module, dependent_spec):

    module.go = self.spec['go'].command
