Distribute App with 32 bit mode pre-selected

Discussion in 'Mac Programming' started by pauljwells, Nov 8, 2009.

  1. pauljwells macrumors newbie

    Jun 9, 2008
    I'm writing an App using python with a GUI in wxpython (for cross-platform compatibility) and packaging using py2app. It has to have the 'Open in 32-bit mode' checkbox checked (in the 'get info' dialogue) in order to run.

    Where is this flag actually stored? I can't find any preference file that registers it.

    I want to be able to distribute the app with this option already checked instead of having to instruct the user to do it.

    Anybody know? Many thanks in advance!
  2. Eraserhead macrumors G4


    Nov 3, 2005
    I guess you just need to only compile against the 32-bit version of Python.

    But to be honest at this point you should be coding 64-bit safe so it shouldn't matter.
  3. robbieduncan Moderator emeritus


    Jul 24, 2002
  4. pauljwells thread starter macrumors newbie

    Jun 9, 2008
    Thanks! I just ran the setup.py in python2.5 and this makes the app 32-bit only, so it fixes the problem.

    The program is a lot of number crunching in python (because of the availability of lots of libraries that already do most of what I need, and execution time isn't a problem) and the GUI is just a few buttons and text fields, nothing fancy. So using wx lets me distribute on mac, windows or linux. Wx is a carbon library so this is what forces the 32-bitness...
  5. pauljwells thread starter macrumors newbie

    Jun 9, 2008
    Thanks! This is what I was actually looking for, even though the earlier poster's suggestion circumvented the issue more easily.

    Thanks everyone!

Share This Page