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 -
#!/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.