I am following: https://docs.python.org/3/distutils/introduction.html#a-simple-example and haven’t been able to get the example to build correctly on z/OS with python 3.6.1
I noticed a few oddities:
- the code was trying to run a script xlc_echocmd which I don’t have. I created a dummy one that just forwarded to xlc as a hack
- the code was referencing libraries and packages out of /u/pdharr/anaconda-build. I created a dummy user of that name and then created symbolic links over to my installation tree directories
- xlc was being driven with a -o option at the end of the command. xlc doesn’t like that and wants the -o option at the start. I manually did the link to see what would happen and ended up with SYMBOL Py_InitModule3 UNRESOLVED.
My question - has anyone successfully built a native python extension for z/OS with python 3.6.1? If so, what am I missing in my config?