<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">OK, I see.<div class=""><br class=""></div><div class="">Maybe though you could learn from what the macports port does, and try and replicate it. Note it does install stuff to ${prefix}/bin, as you want. e.g.</div><div class=""><br class=""></div><div class="">> port contents py37-awscli</div><div class=""><snip></div><div class=""><div class=""> /opt/local/bin/aws-3.7</div><div class=""> /opt/local/bin/aws.cmd-3.7</div><div class=""> /opt/local/bin/aws_bash_completer-3.7</div><div class=""> /opt/local/bin/aws_completer-3.7</div><div class=""> /opt/local/bin/aws_zsh_completer.sh-3.7</div><div class=""><snip></div><div class=""><br class=""></div><div class="">so you should take a look into how it achieves that.</div><div class=""><br class=""></div><div class="">sudo port -s -d install py37-awscli</div><div class=""><br class=""></div><div class="">will force a build from source, with full debug output.</div><div class=""><br class=""></div><div class="">Another possibility is you clone the port and make a new ‘devel’ version of it, that takes the nightly snapshot you want instead of the released version, but uses the rest of the infrastructure just the same.</div><div class=""><br class=""></div><div class="">Chris</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On 2 Dec 2019, at 9:11 pm, Forrest <<a href="mailto:forrie@forrie.com" class="">forrie@forrie.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
<div text="#000000" bgcolor="#FFFFFF" class="">
I have a need to run the latest GIT of the aws-cli, so while the
port is there, I need to be able to compile and install the nightly
code updates for testing.<br class="">
<br class="">
So I am building aws-cli from the GIT repository.<br class="">
<br class="">
<br class="">
Thanks.<br class="">
<br class="">
<br class="">
<div class="moz-cite-prefix">On 12/2/19 3:07 PM, Christopher Jones
wrote:<br class="">
</div>
<blockquote type="cite" cite="mid:99871D05-2DD4-4AA7-B36C-E5691409A07D@hep.phy.cam.ac.uk" class="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
<div class=""><br class="">
</div>
<div class="">OK.</div>
<div class=""><br class="">
</div>
<div class="">So when you say build from source, do you mean using
MacPorts port for this, or are you building directly yourself
(and if the later, any reason why you are not using the port ?)</div>
<div class=""><br class="">
</div>
<div class=""><a href="https://github.com/macports/macports-ports/blob/master/python/py-awscli/Portfile" class="" moz-do-not-send="true">https://github.com/macports/macports-ports/blob/master/python/py-awscli/Portfile</a></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<blockquote type="cite" class="">
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class="">crjoberon
~ > port search awscli</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class="">awscli_select
@0.1 (python, sysutils)</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class="">
common files for selecting default awscli version</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class=""><br class="">
</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class="">py-awscli
@1.16.292 (python)</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class="">
Universal Command Line Environment for AWS.</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class=""><br class="">
</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class="">py27-awscli
@1.16.292 (python)</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class="">
Universal Command Line Environment for AWS.</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class=""><br class="">
</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class="">py35-awscli
@1.16.292 (python)</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class="">
Universal Command Line Environment for AWS.</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class=""><br class="">
</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class="">py36-awscli
@1.16.292 (python)</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class="">
Universal Command Line Environment for AWS.</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class=""><br class="">
</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class="">py37-awscli
@1.16.292 (python)</span></font></div>
<div class=""><font class="" color="#ffffff"><span style="caret-color: rgb(255, 255, 255);" class="">
Universal Command Line Environment for AWS.</span></font></div>
</blockquote>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<br class="">
<blockquote type="cite" class="">
<div class="">On 2 Dec 2019, at 8:43 pm, Forrest
<forrie@forr</div>
</blockquote>
<br class="">
<blockquote type="cite" class="">
<div class=""><a href="http://ie.com/" class="" moz-do-not-send="true">ie.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">The /usr/bin/python installs the executable
into /usr/local/bin. I'd be fine if the Macports installed
it in /opt/local/bin -- this makes me believe there is a
config directive I'm missing somewhere.<br class="">
<br class="">
<br class="">
<br class="">
On 12/2/19 2:38 PM, Christopher Jones wrote:<br class="">
<blockquote type="cite" class="">When you say " vs
/usr/bin/python that does the right thing and places the
commands in proper places “ where exactly are you
referring to ? Where exactly do you want the macports
provided python to install things to ?<br class="">
<br class="">
<blockquote type="cite" class="">On 2 Dec 2019, at 7:50
pm, Forrest <<a href="mailto:forrie@forrie.com" class="" moz-do-not-send="true">forrie@forrie.com</a>>
wrote:<br class="">
<br class="">
I'm new to Python and I'm trying to figure out why,
for example, when I install aws-cli (from source)
using Macports, it doesn't install properly vs
/usr/bin/python that does the right thing and places
the commands in proper places. When I run
"/opt/local/bin/python setup.py install" it ends up
buried in directories under the Macports directory
structure, which isn't usable. Maybe I am missing
some ENV variables?<br class="">
<br class="">
<br class="">
<br class="">
F<br class="">
<br class="">
</blockquote>
</blockquote>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</blockquote>
<br class="">
</div>
</div></blockquote></div><br class=""></div></body></html>