build_osx.py
1 """Building osx.""" 2 import os 3 from glob import glob 4 from PyQt4 import QtCore 5 from setuptools import setup 6 7 name = "Bitmessage" 8 version = os.getenv("PYBITMESSAGEVERSION", "custom") 9 mainscript = ["bitmessagemain.py"] 10 11 DATA_FILES = [ 12 ('', ['sslkeys', 'images', 'default.ini']), 13 ('sql', glob('sql/*.sql')), 14 ('bitmsghash', ['bitmsghash/bitmsghash.cl', 'bitmsghash/bitmsghash.so']), 15 ('translations', glob('translations/*.qm')), 16 ('ui', glob('bitmessageqt/*.ui')), 17 ( 18 'translations', 19 glob(os.path.join(str(QtCore.QLibraryInfo.location( 20 QtCore.QLibraryInfo.TranslationsPath)), 'qt_??.qm'))), 21 ( 22 'translations', 23 glob(os.path.join(str(QtCore.QLibraryInfo.location( 24 QtCore.QLibraryInfo.TranslationsPath)), 'qt_??_??.qm'))), 25 ] 26 27 setup( 28 name=name, 29 version=version, 30 app=mainscript, 31 data_files=DATA_FILES, 32 setup_requires=["py2app"], 33 options=dict( 34 py2app=dict( 35 includes=['sip', 'PyQt4._qt'], 36 iconfile="images/bitmessage.icns" 37 ) 38 ) 39 )