2019-08-29 11:02:14 +00:00
|
|
|
"""Building osx."""
|
2015-12-22 23:42:20 +00:00
|
|
|
from glob import glob
|
2015-11-14 12:11:33 +00:00
|
|
|
import os
|
2015-12-22 23:34:41 +00:00
|
|
|
from PyQt4 import QtCore
|
2013-07-30 00:24:04 +00:00
|
|
|
from setuptools import setup
|
2013-06-15 19:09:15 +00:00
|
|
|
|
|
|
|
name = "Bitmessage"
|
2015-11-14 12:11:33 +00:00
|
|
|
version = os.getenv("PYBITMESSAGEVERSION", "custom")
|
2013-07-30 00:24:04 +00:00
|
|
|
mainscript = ["bitmessagemain.py"]
|
2013-06-15 19:09:15 +00:00
|
|
|
|
2015-12-22 23:34:41 +00:00
|
|
|
DATA_FILES = [
|
|
|
|
('', ['sslkeys', 'images']),
|
|
|
|
('bitmsghash', ['bitmsghash/bitmsghash.cl', 'bitmsghash/bitmsghash.so']),
|
|
|
|
('translations', glob('translations/*.qm')),
|
2016-03-24 14:29:21 +00:00
|
|
|
('ui', glob('bitmessageqt/*.ui')),
|
2015-12-22 23:34:41 +00:00
|
|
|
('translations', glob(str(QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.TranslationsPath)) + '/qt_??.qm')),
|
|
|
|
('translations', glob(str(QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.TranslationsPath)) + '/qt_??_??.qm')),
|
|
|
|
]
|
|
|
|
|
2013-06-15 19:09:15 +00:00
|
|
|
setup(
|
2019-08-29 11:02:14 +00:00
|
|
|
name=name,
|
|
|
|
version=version,
|
|
|
|
app=mainscript,
|
|
|
|
data_files=DATA_FILES,
|
|
|
|
setup_requires=["py2app"],
|
|
|
|
options=dict(
|
|
|
|
py2app=dict(
|
|
|
|
includes=['sip', 'PyQt4._qt'],
|
|
|
|
iconfile="images/bitmessage.icns"
|
2014-08-27 07:14:32 +00:00
|
|
|
)
|
|
|
|
)
|
2013-06-15 19:09:15 +00:00
|
|
|
)
|