Author martin.panter
Recipients David.Edelsohn, Michael.Felt, martin.panter
Date 2016-04-29.02:22:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461896539.64.0.204300144689.issue26439@psf.upfronthosting.co.za>
In-reply-to
Content
The obvious (but easy to fix) problem I forsee with Python 3 is the print() calls. If you use print("") and print(arg), that will work with both 2 and 3. There may be more complications with bytes vs text stdout if we change the os.popen() calls to use subprocess.Popen.

I didn’t mean to use libpython2.7 specifically. Substitute any shared library that is widely available across platforms; maybe “crypto” is a better example. CDLL(find_library("crypto")) loads "libcrypto.so.1.0.0" on my Linux computer. It looks like you got the equivalent working for AIX; I was just checking.

FWIW it looks like your parsing of sys.executable to find library search paths is similar to searching the runpath (or RPATH) on ELF files, as proposed in Issue 19317. And it seems AIX’s LIBPATH environment variable is similar to LD_LIBRARY_PATH on Linux, proposed to be searched in Issue 9998. Also, I understand the equivalent OS X environment variables DYLD_(FALLBACK)_LIBRARY_PATH are already used.
History
Date User Action Args
2016-04-29 02:22:19martin.pantersetrecipients: + martin.panter, David.Edelsohn, Michael.Felt
2016-04-29 02:22:19martin.pantersetmessageid: <1461896539.64.0.204300144689.issue26439@psf.upfronthosting.co.za>
2016-04-29 02:22:19martin.panterlinkissue26439 messages
2016-04-29 02:22:18martin.pantercreate