Please login or register. November 14, 2019, 06:42:05 PM

Author Topic: Python3 on AIX5.3  (Read 121 times)

0 Members and 1 Guest are viewing this topic.

rsm.gbg

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
Python3 on AIX5.3
« on: November 05, 2019, 10:54:31 AM »
Hi,

Tried a number of python3 packages but they all require AIX 6.1
Is there one for AIX 5.3?

I need all the requiremenst to run Ansible 2.8.4 against AIX 5.3
This is what I got so far.
bash-4.4# ls -l
total 347352
-rwxrwxr-x    1 786926224 1074097427   35011584 Nov  5 03:04 aixtools.bdb.4.7.25.0.I
-rwxrwxr-x    1 786926224 1074097427   35009536 Nov  5 03:04 aixtools.db.4.7.25.0.I
-rwxrwxr-x    1 786926224 1074097427     468480 Nov  5 03:06 aixtools.expat.2.2.5.0.I
-rwxrwxr-x    1 786926224 1074097427   19380224 Nov  5 03:01 aixtools.gnu.gettext.0.19.8.1.I
-rwxrwxr-x    1 786926224 1074097427    2052608 Nov  5 03:01 aixtools.gnu.libiconv.1.15.0.1.I
-rwxrwxr-x    1 786926224 1074097427    1134592 Nov  5 03:07 aixtools.gnu.readline.7.0.0.0.I
source: https://www.djouxtech.net/posts/ansible-on-aix/

Cheers,
Roland

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1169
  • Karma: +0/-0
Re: Python3 on AIX5.3
« Reply #1 on: November 06, 2019, 08:56:17 AM »
I have been packaging on AIX 6.1 - mainly because there is an additional library for UUID.

Which version of Python do you need?

And, probably, you will not need all of that below.

It is not ansible 2.8 - but it was the first time I put it all together - and iirc, for Python2 and AIX 5.3. See http://download.aixtools.net/tools/Python2/apps/ansible/ (for an experiment). Note: one of the files is a tar file (bundle) with all the rest.

If you download Python2 (this one was built against AIX 5.3 iirc http://download.aixtools.net/tools/aixtools.python.2.7.15.0.I).

Note: this is what I am working on atm - everything as wheels.

This is all for AIX 6.1, but it gives you an idea.

michael@x066:[/home/michael]ls -l wheels
total 31576
-rw-r--r--    1 michael  felt         125326 Oct 31 13:18 Jinja2-2.10.3-py2.py3-none-any.whl
-rw-r--r--    1 michael  felt          17379 Oct 31 13:45 MarkupSafe-1.1.1-cp36-cp36m-AIX_6106_1043_64.whl
-rw-r--r--    1 michael  felt          44109 Oct 31 13:44 PyYAML-5.1.2-cp36-cp36m-AIX_6106_1043_64.whl
-rw-r--r--    1 michael  felt       12639915 Oct 31 13:44 ansible-2.8.6-py3-none-any.whl
-rw-r--r--    1 michael  felt         200520 Oct 31 09:46 cffi-1.13.1-cp36-cp36m-AIX_6106_1043_64.whl
drwxr-xr-x    7 michael  felt           4096 Oct 31 13:40 cryptography-2.8
-rw-r--r--    1 michael  felt         490241 Oct 31 13:40 cryptography-2.8-cp36-cp36m-AIX_6106_1043_64.whl
-rw-r--r--    1 michael  felt         504516 Oct 31 13:26 cryptography-2.8.tar.gz
-rw-r--r--    1 michael  felt        1415262 Nov 05 10:15 pip-19.3.1-py2.py3-none-any.whl
-rw-r--r--    1 michael  felt         111029 Oct 31 09:46 pycparser-2.19-py2.py3-none-any.whl
-rw-r--r--    1 michael  felt         582933 Oct 31 13:22 setuptools-41.6.0-py2.py3-none-any.whl
-rw-r--r--    1 michael  felt          10586 Oct 31 09:00 six-1.12.0-py2.py3-none-any.whl


The way this works - you install python(3), and then use the command

pip3 install *.whl

Then even for packages such as cryptography (that has a small bug for building on AIX) - no C compiler is needed. Everything is pre-packaged in the wheel.

Meetings first. I'll get on this later.

p.s. - please run the command:

/usr/bin/lslpp -Lqc bos.mp64

e.g.,

root@x065:[/]/usr/bin/lslpp -Lqc bos.mp64
bos.mp64:bos.mp64:5.3.7.0: : :C: :Base Operating System 64-bit Multiprocessor Runtime : : : : : : :1:0:/:0747


I'll need this for instructions on how to get the wheels right.

rsm.gbg

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Python3 on AIX5.3
« Reply #2 on: November 06, 2019, 10:25:03 AM »
Hi,

Thanks for your response, much appreciated.
We run our Ansible server on SUSE, which we are in progress to upgrade to SUSE 15.1 and python 3.x.

So we need all our AIX 5.x 6.x 7.x clients to be able to run on that.
Most of our ansible for AIX is very limited to a few things and we need to change that to more.
I guess future Ansible versions will only support python3.
I dont think we will get rid of any AIX 5.3 in the near future...

I found 1 python3 for AIX 5.x        aixtools.python3.3.5.2.0.I
this version seems to work fine.

What I have now on AIX5.3
bash-4.4# ls -l /mnt1/packages/aix/5.3/aixtools
total 347352
-rwxrwxr-x    1 786926224 1074097427   35011584 Nov  5 03:04 aixtools.bdb.4.7.25.0.I
-rwxrwxr-x    1 786926224 1074097427   35009536 Nov  5 03:04 aixtools.db.4.7.25.0.I
-rwxrwxr-x    1 786926224 1074097427     468480 Nov  5 03:06 aixtools.expat.2.2.5.0.I
-rwxrwxr-x    1 786926224 1074097427   19380224 Nov  5 03:01 aixtools.gnu.gettext.0.19.8.1.I
-rwxrwxr-x    1 786926224 1074097427    2052608 Nov  5 03:01 aixtools.gnu.libiconv.1.15.0.1.I
-rwxrwxr-x    1 786926224 1074097427    1134592 Nov  5 03:07 aixtools.gnu.readline.7.0.0.0.I
-rwxrwxr-x    1 786926224 1074097427   84048384 Nov  5 04:17 aixtools.python3.3.5.2.0.I

I guess the db ones are only for the Ansible server...
I only need the requirements for AIX Ansible clients.

Keep up your excellent work.

Cheers,
- Roland



rsm.gbg

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Python3 on AIX5.3
« Reply #3 on: November 06, 2019, 10:28:13 AM »
oops, forgot.
My testbed is a LPAR

bash-4.4# /usr/bin/lslpp -Lqc bos.mp64
bos.mp64:bos.mp64:5.3.12.5: : :C: :Base Operating System 64-bit Multiprocessor Runtime : : : : : : :1:0:/:1140

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1169
  • Karma: +0/-0
Re: Python3 on AIX5.3
« Reply #4 on: November 09, 2019, 09:23:45 AM »
I have been working on this, the way I think it should be done.

As that is likely to take weeks to get finished I'll find a short-term workaround.

The later solution will continue to be compatible.