<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, 2 Mar 2016 at 09:12 Michael Felt <<a href="mailto:aixtools@gmail.com">aixtools@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
<br>
1) There are many lists to choose from - if this is the wrong one for<br>
questions about packaging - please forgive me, and point me in the right<br>
direction.<br></blockquote><div><br></div><div>So in this instance you're after python-list since this is a general support question. But since I have an answer for you...</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
2) Normally, I have just packaged python, and then moved on. However,<br>
recently I have been asked to help with packaging an 'easier to install'<br>
python by people using cloud-init, and more recently people wanting to<br>
use salt-stack (on AIX).<br>
<br>
FYI: I have been posting about my complete failure to build 2.7.11 (<br>
<a href="http://bugs.python.org/issue26466" rel="noreferrer" target="_blank">http://bugs.python.org/issue26466</a>) - so, what I am testing is based on<br>
2.7.10 - which built easily for me.<br>
<br>
Going through the 'base documentation' I saw a reference to both<br>
sys.argv and sys.path. atm, I am looking for an easy way to get the<br>
program name (e.g., /opt/bin/python, versus ./python).<br>
I have my reasons (basically, looking for a compiled-in library search<br>
path to help with <a href="http://bugs.python.org/issue26439" rel="noreferrer" target="_blank">http://bugs.python.org/issue26439</a>)<br></blockquote><div><br></div><div><a href="https://docs.python.org/2.7/library/sys.html#sys.executable">https://docs.python.org/2.7/library/sys.html#sys.executable</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Looking on two platforms (AIX, my build, and debian for power) I am<br>
surprised that sys.argv is empty in both cases, and sys.path returns<br>
/opt/lib/python27.zip with AIX, but not with debian.<br></blockquote><div><br></div><div>Did you actually build your version of Python on Debian? If not then do realize that Debian patches their version of CPython, so it wouldn't shock me if they stripped out the code that adds the zip file to sys.path. IOW don't trust the pre-installed CPython to act the same as one that is built from source.</div></div></div>