2015-12-23 00:42:20 +01:00
|
|
|
from glob import glob
|
2015-11-14 13:11:33 +01:00
|
|
|
import os
|
2015-12-23 00:34:41 +01:00
|
|
|
from PyQt4 import QtCore
|
2013-07-30 02:24:04 +02:00
|
|
|
from setuptools import setup
|
2013-06-15 21:09:15 +02:00
|
|
|
|
|
|
|
name = "Bitmessage"
|
2015-11-14 13:11:33 +01:00
|
|
|
version = os.getenv("PYBITMESSAGEVERSION", "custom")
|
2013-07-30 02:24:04 +02:00
|
|
|
mainscript = ["bitmessagemain.py"]
|
2013-06-15 21:09:15 +02:00
|
|
|
|
2015-12-23 00:34:41 +01:00
|
|
|
DATA_FILES = [
|
|
|
|
('', ['sslkeys', 'images']),
|
2018-06-28 11:47:36 +02:00
|
|
|
("workprover", ["gpusolver.cl"]),
|
|
|
|
("workprover/fastsolver", ["libfastsolver.so"]),
|
2015-12-23 00:34:41 +01:00
|
|
|
('translations', glob('translations/*.qm')),
|
2016-03-24 15:29:21 +01:00
|
|
|
('ui', glob('bitmessageqt/*.ui')),
|
2015-12-23 00:34:41 +01: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 21:09:15 +02:00
|
|
|
setup(
|
2014-08-27 09:14:32 +02:00
|
|
|
name = name,
|
|
|
|
version = version,
|
|
|
|
app = mainscript,
|
2015-12-23 00:39:58 +01:00
|
|
|
data_files = DATA_FILES,
|
2014-08-27 09:14:32 +02:00
|
|
|
setup_requires = ["py2app"],
|
|
|
|
options = dict(
|
|
|
|
py2app = dict(
|
|
|
|
includes = ['sip', 'PyQt4._qt'],
|
|
|
|
iconfile = "images/bitmessage.icns"
|
|
|
|
)
|
|
|
|
)
|
2013-06-15 21:09:15 +02:00
|
|
|
)
|