This repository has been archived on 2025-02-16. You can view files and clone it, but cannot push or open issues or pull requests.

40 lines
1.0 KiB
Python
Raw Permalink Normal View History

2019-08-29 16:32:14 +05:30
"""Building osx."""
import os
from glob import glob
from PyQt4 import QtCore
2013-07-30 00:24:04 +00:00
from setuptools import setup
2013-06-15 21:09:15 +02:00
name = "Bitmessage"
version = os.getenv("PYBITMESSAGEVERSION", "custom")
2013-07-30 00:24:04 +00:00
mainscript = ["bitmessagemain.py"]
2013-06-15 21:09:15 +02:00
DATA_FILES = [
('', ['sslkeys', 'images', 'default.ini']),
('sql', glob('sql/*.sql')),
('bitmsghash', ['bitmsghash/bitmsghash.cl', 'bitmsghash/bitmsghash.so']),
('translations', glob('translations/*.qm')),
('ui', glob('bitmessageqt/*.ui')),
2020-01-17 18:57:36 +05:30
(
'translations',
glob(os.path.join(str(QtCore.QLibraryInfo.location(
QtCore.QLibraryInfo.TranslationsPath)), 'qt_??.qm'))),
(
'translations',
glob(os.path.join(str(QtCore.QLibraryInfo.location(
QtCore.QLibraryInfo.TranslationsPath)), 'qt_??_??.qm'))),
]
2013-06-15 21:09:15 +02:00
setup(
2019-08-29 16:32:14 +05:30
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 03:14:32 -04:00
)
)
2013-06-15 21:09:15 +02:00
)