1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Distribute App with 32 bit mode pre-selected

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

  1. macrumors newbie

    #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

    #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

    robbieduncan

    Staff Member

    #3
  4. macrumors newbie

    #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. macrumors newbie

    #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