AIX, Linux and POWER Portal

AIX => AIXTOOLS => Topic started by: sap_dude on May 30, 2018, 07:04:15 AM

Title: Python3 64bit package
Post by: sap_dude on May 30, 2018, 07:04:15 AM
Hello,
would it please be possible to provide also the 64bit version of the python3 package? I've tried compiling it myself without much success.
Title: Re: Python3 64bit package
Post by: Michael on June 01, 2018, 04:45:53 PM
No problem. I'll have to think about how I "label" it.

For now - the packaging will be either 32 or 64 bit. If you think there is a real need for both, I'll think about using different "prefixes", e.g., /opt/bin/64 for the executables. The libraries will be dual sized - aka /opt/lib/python3.6 for both 32-bit and 64-bit libraries.

Also, out of curiosity - did you try my github branch with the extra patch for Lib/ctypes ?
Title: Re: Python3 64bit package
Post by: Michael on June 01, 2018, 07:13:53 PM
Done. Also includes (embedded) the latest xz aka lzma library (version 5.2.4).

See http://www.aixtools.net/index.php/python3
Title: Re: Python3 64bit package
Post by: sap_dude on June 06, 2018, 02:35:03 PM
Hello Michael,
thanks a lot for such a prompt response and results! Much appreciated, guess I should buy you a beer at least.

I must admit I have not tried it, I only played with the vanilla source.
I'll try and install the package, and test it with the cx_Oracle module and 64bit Oracle client.

Best regards
Jiri
Title: Re: Python3 64bit package
Post by: Michael on June 06, 2018, 04:03:46 PM
My pleasure. And I think you will be happier that I use the IBM compiler rather than gcc.

I did not try using pip, so I have not checked if it works. With Python2 I have often needed to tweek it before I repackage it.

Looking forward to your feedback.

Michael
Title: Re: Python3 64bit package
Post by: Michael on June 08, 2018, 06:51:31 PM
just tested "pip3 install" using numpy and it worked fine for me.

Only one thing you need to remember to do. Before calling "pip3 install numpy", you should "export OBJECT_MODE=64" or you are likely to get errors when a 32-bit application tries to become "linkable" with 64-bit python.

HtH, Michael
Title: Re: Python3 64bit package
Post by: Michael on June 30, 2018, 06:45:11 AM
p.s. - Have built python3-3.7.0 in both 32-bit and 64-bit.