Date: 12-07-20  Time: 23:33 PM

Recent Posts

Pages: 1 [2] 3 4 ... 10
11
AIXTOOLS / Re: Python and wheels continuing story
« Last post by Michael on July 02, 2020, 05:23:36 AM »
OK. I'll have to build it seperately. Do not have it for py37 yet.
p.s. - what is the oslevel your run on? (oslevel -s -q | head -5).
p.p.s. I assume you are using my packaging of Python.
12
AIXTOOLS / Re: Python and wheels continuing story
« Last post by raghugr on July 01, 2020, 09:46:41 PM »
Thank you again Michael for your reply..

Python 3.7 is what I got installed. Below are the list of packages. My end goal is to have pandas. I hope once I have numpy installed, should have pandas issues corrected. Please advise if not so. I am novice to the AIX world.

bcrypt       3.1.7
cffi         1.13.2
cryptography 2.8
Cython       0.29.20
paramiko     2.6.0
pip          20.1.1
pycparser    2.19
PyNaCl       1.3.0
setuptools   40.8.0
six          1.13.0
wheel        0.34.2

13
AIXTOOLS / Re: Python and wheels continuing story
« Last post by Michael on July 01, 2020, 08:21:45 PM »
Not tonight - at least I don't think so.
Which version of Python are you using? As wheels are - usually - Python version dependent.
14
AIXTOOLS / Re: Python and wheels continuing story
« Last post by raghugr on July 01, 2020, 08:17:04 PM »
Michael this is great. I have been trying to do this on the aix but to no avail.. Can I get this numpy wheel package hosted as I am not able to compile on our aix 7.1..
15
Did you get this working, i.e. PASS all tests?
If not, would you want my .whl?
16
Thank you ever so much time for your guidance Michael!

Not working for me quite yet.  I shall try again from the top following the steps you ran.

<snip>
PASS: core_ristretto255
ERROR: pwhash_scrypt
ERROR: pwhash_scrypt_ll
PASS: scalarmult_ed25519
PASS: scalarmult_ristretto255
PASS: siphashx24
PASS: xchacha20
============================================================================
Testsuite summary for libsodium 1.0.18
============================================================================
# TOTAL: 77
# PASS:  75
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 2
<SNIP>
17
Maybe this helps - having a clean build system (that can be trashed, as the Try and Buy compiler can not be reinstalled - they hide it's history that it was installed "somewhere")
especially with a build systems that is "lowest level" supported by your environment!
Build there (as wheels), then rename (aka link) on the target host using this first draft -
Code: [Select]
#!/usr/bin/env python3
"""
Examine arguments for aix pep425 tags
and propose ln (link) commands to give a new name
to an existing wheel for AIX.

Copyright 2020 by AIXTOOLS.NET, Michael Felt
"""

import sys, glob, sysconfig

# save runttime-tag and reverse a copy for comparision
rt_tag = sysconfig.get_platform().split("-")
_tag = list(rt_tag)
_tag.reverse()

# loop through all arguments and look for a AIX tags
for idx in range(1,len(sys.argv)):
  for arg in glob.glob(sys.argv[idx]):
    wheel=arg.split("-")
    if not wheel[-1].startswith("aix_"):
        continue
    # have a potential tag, reverse tag for comparision
    file_tag=wheel[-1].split(".")[0].split("_")
    file_tag.reverse()

    # if the tags are equal, or they are not 32-bit|64-bit - continue
    if (_tag == file_tag) or _tag[0] not in ["32", "64"]:
      continue

    # if the running tag is greater AND same bit-size link names
    elif (_tag > file_tag) and _tag[0] == file_tag[0]:
      wheel[-1] = "_".join(rt_tag) + ".whl"
      print("ln {} {}".format(arg, "-".join(wheel)))
And, as I am looking at a more economical way to support aixtools - I am going to experiment, at least as far as python goes - with opening issues on https://github.com/aixtools/cpython - for things that can be solved via packaging (of Python).
I guess I'll do the same with https://github.com/aixtools/packaging (which is pypa (aka pip et al)) related.
18
Thanks Michael.  I'm not sure I'd have ever worked out the need for GNU tar.
19
Actually, it looks successful...
Code: [Select]
(py38) root@x065:[/data/prj/python/py38/download/PyNaCl-1.4.0]ls -l ../*.gz dist
-rw-r--r--   1 root     felt        3416950 Jun 27 08:56 ../PyNaCl-1.4.0.tar.gz
-rw-r--r--   1 root     felt         463065 Jun 27 08:56 ../cffi-1.14.0.tar.gz

dist:
total 7184
-rw-r--r--   1 root     system       256173 Jun 27 09:25 PyNaCl-1.4.0-cp38-cp38-aix_5307_0747_64.whl
-rw-r--r--   1 root     system      3415014 Jun 27 09:23 PyNaCl-1.4.0.tar.gz
So, I'll rename the cffi and PyNaCl wheels and install them on my test server.
20
I come quite far, I think - and shall try creating a wheel - BUT - I am nervous something else will get in way.
Code: [Select]
(py38) root@x065:[/data/prj/python/py38/download/PyNaCl-1.4.0]python setup.py build
running build
running build_py
creating build
creating build/lib.aix-5307-0747-64-3.8
creating build/lib.aix-5307-0747-64-3.8/nacl
copying src/nacl/__init__.py -> build/lib.aix-5307-0747-64-3.8/nacl
copying src/nacl/encoding.py -> build/lib.aix-5307-0747-64-3.8/nacl
...PASS: xchacha20============================================================================
Testsuite summary for libsodium 1.0.18
============================================================================
# TOTAL: 77
# PASS:  77
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================

...
generating cffi module 'build/temp.aix-5307-0747-64-3.8/_sodium.c'
building '_sodium' extension
creating build/temp.aix-5307-0747-64-3.8/build
creating build/temp.aix-5307-0747-64-3.8/build/temp.aix-5307-0747-64-3.8
xlc_r -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 -q64 -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 -q64 -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 -q64 -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 -q64 -I/data/prj/python/py38/include -I/opt/include/python3.8 -Ibuild/temp.aix-5307-0747-64-3.8/include -c build/temp.aix-5307-0747-64-3.8/_sodium.c -o build/temp.aix-5307-0747-64-3.8/build/temp.aix-5307-0747-64-3.8/_sodium.o
/opt/lib/python3.8/config-3.8/ld_so_aix xlc_r -bI:/opt/lib/python3.8/config-3.8/python.exp -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 -q64 -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 -q64 build/temp.aix-5307-0747-64-3.8/build/temp.aix-5307-0747-64-3.8/_sodium.o -Lbuild/temp.aix-5307-0747-64-3.8/lib -Lbuild/temp.aix-5307-0747-64-3.8/lib64 -Lbuild/temp.aix-5307-0747-64-3.8 -lsodium -lsodium -o build/lib.aix-5307-0747-64-3.8/nacl/_sodium.abi3.so
ld: 0711-327 WARNING: Entry point not found: PyInit__sodium.abi3
(py38) root@x065:[/data/prj/python/py38/download/PyNaCl-1.4.0]echo $?
0
Pages: 1 [2] 3 4 ... 10