<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 7/13/15 8:28 AM, Brandon Allbery
wrote:<br>
</div>
<blockquote
cite="mid:CAKFCL4UrOBaPfF38Ct-bSQjNco5Z+s+EybygU4qS0NggrsQong@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Mon, Jul 13, 2015 at 7:36 AM,
Behrang Saeedzadeh <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:behrangsa@gmail.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:behrangsa@gmail.com">behrangsa@gmail.com</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><font
face="verdana, arial, sans-serif" color="#000000"><span
style="font-size:12px;line-height:normal">Should I
just add </span></font><span
style="color:rgb(0,0,0);font-family:verdana,arial,sans-serif;font-size:12px;line-height:normal">/opt/local/Library/Frameworks/Python.framework/Versions/Current/bin
to the PATH, or is there a better alternative available?</span></blockquote>
</div>
<br>
In short, yes (or symlink it into somewhere on $PATH).</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">AWS's instructions assume you are using
Apple's Python. MacPorts allows you to have multiple versions
of Python installed, so it can't just slap stuff into
/opt/local/bin (what happens if you install it into multiple
Python versions?).<br>
</div>
</div>
</blockquote>
<br>
Adding the following to your <tt>.profile/.bash_profile</tt> should
correctly pick up whatever version of python is set by <tt>port </tt><tt>select</tt>
(be sure it's after <tt>/opt/local/bin</tt> is added to your <tt>PATH</tt>):<br>
<br>
<tt> PATH="$(python-config --exec-prefix)/bin:${PATH}"</tt><tt><br>
</tt><br>
This has the added benefit that if <tt>port </tt><tt>select</tt>
for <tt>python</tt> is <tt>none</tt> it will fall though to the
Python.org build, then the Apple supplied build.<br>
<br>
Jay<br>
<pre class="moz-signature" cols="72">--
Jason C Penney (<a class="moz-txt-link-abbreviated" href="mailto:jpenney@jczorkmid.net">jpenney@jczorkmid.net</a>)
<a class="moz-txt-link-freetext" href="http://jasonpenney.net/">http://jasonpenney.net/</a>
</pre>
</body>
</html>