Statically Linking Python 2.5, wxPython, Numpy

  • These instructions still do not work (I get a seg fault) so this will be updated until I get a working setup.
  • Follow these instructions, but note the following caveats
    • Instead of –enable-static, use –disable-shared
    • Copy distrib/make_static_setup.py to the top level wxPython directory and save its output to Setup.local
    • Copy Setup.local to the Python src/Modules directory
    • On my setup, I had to edit Setup.local and delete all -pthread instances
    • After configuring Python, edit the Makefile so thatlib stdc++ is linked in.
    • If you get a libinstall error when you run make install, use make -i install
    • Copy the wx and wx_addons directories from the wxPython source directory
    • If you have trouble with import wx, edit the Setup file in the Python src/Modules directory and add _random operator, and other modules.

    Comments are closed.