Hi,
I have successfully deployed an app using python 2.6.6 and wxpython
2.8.10.1 on windows and linux.
There are couple of c-extensions created using cython.
Now I have to port the same app on Mac and I am newly introduced to
this platform. One of the most important factor is to produce a
universal package. I am on 10.5.5 Leopard Intel. By default python
2.5.1 is
installed on Mac and first thing I have to do is to install python
2.6.6. There is build available on python.org but I not sure that
build is universal or not. As per py2app docs you have to make sure
that you use universal build of python to make your app compatible for
both architecture(ppc and i686).
If the build available on python.org is not universal then how do I
produce a universal build of python 2.6.6?
Do I have to compile python from sources on Mac with some specific
instructions?
I am bit confused about this para of py2app:
http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html#id17
"If you are building your application with a version of Python that is
not universal, or have extensions that are not universal, then you
must set the LSPrefersPPC Info.plist key to True. This will force the
application to run translated with Rosetta by default. This is
necessary because the py2app bootstrap application is universal, so
Finder will try and launch naively by default."
If I correctly followed then you can use a build of python which is
not universal as well as create c-extensions normally. Only thing you
have to do is set "LSPrefersPPC" key and py2app will create a
universal package. Am I right here?
wxpython.org has a build of wxpython (wxPython2.8-osx-unicode-py2.6)
which is compatible on both architecture so there are no issues.
the whole idea is to create a package using py2app that is universal.
Cheers