import os
from setuptools import setup

name = "Bitmessage"
version = os.getenv("PYBITMESSAGEVERSION", "custom")
mainscript = ["bitmessagemain.py"]

setup(
    name = name,
    version = version,
    app = mainscript,
    setup_requires = ["py2app"],
    options = dict(
        py2app = dict(
            resources = ["images", "translations", "bitmsghash", "sslkeys"],
            includes = ['sip', 'PyQt4._qt'],
            iconfile = "images/bitmessage.icns"
        )
    )
)

@@ -3,16 +3,41 @@
 port os%0A
+from PyQt4 import QtCore%0A
 from set
@@ -57,16 +57,16 @@
 t setup%0A
-
 %0Aname = 
@@ -167,16 +167,427 @@
 n.py%22%5D%0A%0A
+DATA_FILES = %5B%0A    ('', %5B'sslkeys', 'images'%5D),%0A    ('bitmsghash', %5B'bitmsghash/bitmsghash.cl', 'bitmsghash/bitmsghash.so'%5D),%0A    ('translations', glob('translations/*.qm')),%0A    ('translations', glob(str(QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.TranslationsPath)) + '/qt_??.qm')),%0A    ('translations', glob(str(QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.TranslationsPath)) + '/qt_??_??.qm')),%0A%5D%0A%0A
 setup(%0A 
@@ -647,16 +647,42 @@
 script,%0A
+    data_files=DATA_FILES%0A
     setu
@@ -718,32 +718,32 @@
 options = dict(%0A
+
         py2app =
@@ -753,85 +753,8 @@
 ct(%0A
-            resources = %5B%22images%22, %22translations%22, %22bitmsghash%22, %22sslkeys%22%5D,%0A
     

Fix frozen localisation (OSX)