Products Resources Support About Us

Rocket Software

Issue trying to create a python extension with python 2.7

Hi

I am new to python and wanted to try creating an extension. I tripped over:
https://www.tutorialspoint.com/python/python_further_extensions.htm
and tried it out. When I issued:
python setup.py install
the compile of the shared library worked fine, but the bind (ld) was using the wrong options:

python setup.py install
running install
running build
running build_ext
building ‘helloworld’ extension
c99 -O -qfloat=ieee -qhaltonmsg=3296 -D_ALL_SOURCE -qdll -qxplink -DNDEBUG -O -I/Z23C/tools/include/python2.7 -c hello.c -o build/temp.os390-26.00-1090-2.7/hello.o
ld -qdll -qxplink build/temp.os390-26.00-1090-2.7/hello.o -o build/lib.os390-26.00-1090-2.7/helloworld.so
IEW5003 -q is not a valid option.
error: command ‘ld’ failed with exit status 8

The ‘ld’ command is not right - but I’m not sure how I go about fixing this. Anyone else tripped over this?