Porting of Python 2.1.1 to QNX6.1 solved ...

Hi all,

the port of Python 2.1.1 can to be done with the following steps:

  1. install the Python archive at /
    then do the export cmds: export PYTHONPATH=/Python-2.1.1 ,
    export PYTHONHOME=/Python-2.1.1

  2. copy all *.py files from /Python-2.1.1/Lib to
    /Python-2.1.1/lib/python2.1
    (there is a curious fault in the UNIX distribution…)

  3. configure: CC=qcc LDFLAGS=-Wl,-E CCSHARED="-shared -fPIC"
    CFLAGSFORSHARED="-shared -fPIC" LDSHARED=“qcc -shared”
    BLDSHARED=“qcc -shared” ./configure --with-threads
    (in ONE cmd line …)

  4. make

  5. make install

  6. export cmds: export PYTHONPATH=/usr/local/lib/python2.1
    export PYTHONHOME=/usr/local/lib/python2.1

  7. copy all shared objects from $PYTHONPATH/lib-dynload to
    $PYTHONPATH/lib/python2.1 (as you know … there is a curious
    faulr …)

:sunglasses: Have fun with Python :slight_smile:

Armin