<div dir="ltr">On Tue, Aug 29, 2017 at 7:40 PM, db <span dir="ltr"><<a href="mailto:iamsudo@gmail.com" target="_blank">iamsudo@gmail.com</a>></span> wrote:<div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On 29 Aug 2017, at 14:55, Umesh Singla <<a href="mailto:umeshksingla@gmail.com">umeshksingla@gmail.com</a>> wrote:<br>
> /opt/local/bin:/opt/local/<wbr>sbin:/usr/local/gradle/gradle-<wbr>2.11/bin:/usr/local/bin:/usr/<wbr>bin:/bin:/usr/sbin:/sbin:/opt/<wbr>X11/bin<br>
><br>
> It simply looks for the packages in the default macports directory (/opt/local) first and then others, I guess. Though I constantly run into problems with different versions of pythons I have installed and need to specify the path every time. Nonetheless, it works.<br>
<br>
</span>You mean python installed by macports or manually by you?<br></blockquote><div><br></div><div>Installed by me, using macports. Like pip becomes a pain and have to install a different pip using macports then or change a path etc..</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">
> This one guy came up with a script [0] to wrap macports executables with the appropriate environment before using them. I think this is what you might be looking for.<br>
<br>
</span>I saw that workaround too, but it seems much of a hassle.<br>
<br>
I read that the defaults should work, with the caveat of tools picking wrong versions from /usr/local/ at build time when using macports, which eventually could be circumvented in trace mode.<br></blockquote><div><br></div><div>Homebrew doesn't really tell the reason or write about linking the binaries to a different path, but do warn about not doing it and installing instead to /usr/local [1]. The philosophy I see behind homebrew is to get everything "just work".</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I was thinking of adding a different path for homebrew to link its binaries from, but I haven't checked the docs if it's possible.</blockquote></div> </div></div><div class="gmail_extra">I am afraid you end up adding an alias for each binary if homebrew doesn't have such an option.</div><div class="gmail_extra"><br></div><div class="gmail_extra">[1]: <a href="https://github.com/Homebrew/brew/blob/master/docs/Installation.md">https://github.com/Homebrew/brew/blob/master/docs/Installation.md</a></div><div class="gmail_extra"><br></div><div class="gmail_extra">- Umesh</div></div>