39b2e44492
In the next commit I change conf.settings to be initialized at runtime instead of load time and so any import of `from lbrynet.conf import settings` will be and stay None if it happens before the initialization.
26 lines
693 B
Python
26 lines
693 B
Python
from setuptools import setup
|
|
import os
|
|
from lbrynet import conf
|
|
|
|
APP = [os.path.join('lbry_uri_handler', 'LBRYURIHandler.py')]
|
|
DATA_FILES = []
|
|
OPTIONS = {'argv_emulation': True,
|
|
'packages': ['jsonrpc'],
|
|
'plist': {
|
|
'LSUIElement': True,
|
|
'CFBundleIdentifier': 'io.lbry.LBRYURIHandler',
|
|
'CFBundleURLTypes': [
|
|
{
|
|
'CFBundleURLTypes': 'LBRYURIHandler',
|
|
'CFBundleURLSchemes': [conf.PROTOCOL_PREFIX]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
setup(
|
|
app=APP,
|
|
data_files=DATA_FILES,
|
|
options={'py2app': OPTIONS},
|
|
setup_requires=['py2app'],
|
|
)
|