Distribute App with 32 bit mode pre-selected

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

  1. macrumors newbie

    Joined:
    Jun 9, 2008
    #1
    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. macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #2
    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. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
  4. thread starter macrumors newbie

    Joined:
    Jun 9, 2008
    #4
    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. thread starter macrumors newbie

    Joined:
    Jun 9, 2008
    #5
    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