{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/yotta/issues/319","labels_url":"https://api.github.com/repos/ARMmbed/yotta/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/yotta/issues/319/comments","events_url":"https://api.github.com/repos/ARMmbed/yotta/issues/319/events","html_url":"https://github.com/ARMmbed/yotta/issues/319","id":96509405,"number":319,"title":"yotta link & support for multi-user systems","user":{"login":"bremoran","id":2636227,"avatar_url":"https://avatars.githubusercontent.com/u/2636227?v=3","gravatar_id":"","url":"https://api.github.com/users/bremoran","html_url":"https://github.com/bremoran","followers_url":"https://api.github.com/users/bremoran/followers","following_url":"https://api.github.com/users/bremoran/following{/other_user}","gists_url":"https://api.github.com/users/bremoran/gists{/gist_id}","starred_url":"https://api.github.com/users/bremoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bremoran/subscriptions","organizations_url":"https://api.github.com/users/bremoran/orgs","repos_url":"https://api.github.com/users/bremoran/repos","events_url":"https://api.github.com/users/bremoran/events{/privacy}","received_events_url":"https://api.github.com/users/bremoran/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ARMmbed/yotta/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-22T08:36:11Z","updated_at":"2015-07-22T08:57:37Z","closed_at":null,"body":"A useful feature would be a way to explicitly specify the target of a yotta link.\r\n\r\nImagining yotta in use on a build farm, it's easy to see that linking modules becomes impractical.  Even if yotta supports user-private links, it's easy to imagine the build user being the same across many parallel builds.\r\n\r\nA potential solution to this problem is something like:\r\n```\r\nyotta link --explicit <path to linked module>\r\n```"},"comment":{"url":"https://api.github.com/repos/ARMmbed/yotta/issues/comments/123627931","html_url":"https://github.com/ARMmbed/yotta/issues/319#issuecomment-123627931","issue_url":"https://api.github.com/repos/ARMmbed/yotta/issues/319","id":123627931,"user":{"login":"AlessandroA","id":8617445,"avatar_url":"https://avatars.githubusercontent.com/u/8617445?v=3","gravatar_id":"","url":"https://api.github.com/users/AlessandroA","html_url":"https://github.com/AlessandroA","followers_url":"https://api.github.com/users/AlessandroA/followers","following_url":"https://api.github.com/users/AlessandroA/following{/other_user}","gists_url":"https://api.github.com/users/AlessandroA/gists{/gist_id}","starred_url":"https://api.github.com/users/AlessandroA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlessandroA/subscriptions","organizations_url":"https://api.github.com/users/AlessandroA/orgs","repos_url":"https://api.github.com/users/AlessandroA/repos","events_url":"https://api.github.com/users/AlessandroA/events{/privacy}","received_events_url":"https://api.github.com/users/AlessandroA/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T08:57:37Z","updated_at":"2015-07-22T08:57:37Z","body":"If we managed to use `exec_prefix` also on *nix we could use `virtualenv`:\r\n\r\n```bash\r\n$ mkdir ~/dev_env\r\n$ virtualenv ~/dev_env\r\n$ cd ~/dev_env && source bin/activate\r\n(dev_env) $ pip install yotta\r\n...\r\n(dev_env) $ git clone yt_module && cd yt_module\r\n(dev_env) $ yt link\r\n```\r\nSo the link only exists in the virtual environment.\r\n\r\nThe problem is that on some *nix `exec_prefix` is `/usr/`. We could do something like\r\n```python\r\nif os.name == 'nt':\r\n    return sys.exec_prefix\r\nelse:\r\n    if sys.exec_prefix == \"/usr\":\r\n        return '/usr/local'\r\n    else:\r\n        return sys.exec_prefix\r\n```\r\n(not very elegant)"}}