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

后端 未结 5 1224
我在风中等你
我在风中等你 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:42

    OK, seeing as I work one office over from Vebjorn, possibly this is the best place to post an answer so we will find it again. Given a dictionary of py2app options:

    options = {}
    ...
    options['plist'] = { "LSArchitecturePriority": [ "i386" ] }
    ...
    setup(options={'py2app':options})
    

    This creates an array of one string value for the LSArchitecturePriority key.

提交回复
热议问题