How to force py2app to run app in 32-bit mode

后端 未结 5 1195
我在风中等你
我在风中等你 2021-01-06 10:24

I am trying to build an app bundle with py2app on Mac OS X 10.6. The app uses some libraries which are only compiled for 32-bit, so when the app is run there is an ImportErr

5条回答
  •  囚心锁ツ
    2021-01-06 10:26

    After lots of pain and trying to get wx working I managed to get it to work using this method, I have also included the versions I installed
    This was the only one that worked for me, I hope it helps others..

    py2applet --arch=i386 -i (includes here) --make-setup (pythonfiles, icon)
    

    Mine looks a bit like this

    py2applet --arch=i386 -i wx, platform --make-setup print.py print.icns convert.py
    

    I installed python2.7 with
    wxPython2.8-osx-unicode-py2.7
    setuptools-0.6c11-py2.7.egg
    and then

    sudo easy_install-2.7 py2app
    

    This installed version 0.6.4 of py2applet

提交回复
热议问题