2015-08-20 17:27:15 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
from setuptools import setup, find_packages
|
2016-02-27 23:49:49 +01:00
|
|
|
import sys
|
2016-03-22 02:33:55 +01:00
|
|
|
import os
|
|
|
|
|
|
|
|
base_dir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
|
|
|
|
|
|
from lbrynet import __version__
|
|
|
|
|
2016-02-27 23:49:49 +01:00
|
|
|
|
|
|
|
console_scripts = ['lbrynet-console = lbrynet.lbrynet_console.LBRYConsole:launch_lbry_console',
|
|
|
|
'lbrynet-stdin-uploader = lbrynet.lbrynet_console.LBRYStdinUploader:launch_stdin_uploader',
|
|
|
|
'lbrynet-stdout-downloader = lbrynet.lbrynet_console.LBRYStdoutDownloader:launch_stdout_downloader',
|
|
|
|
'lbrynet-create-network = lbrynet.create_network:main',
|
|
|
|
'lbrynet-launch-node = lbrynet.dht.node:main',
|
|
|
|
'lbrynet-launch-rpc-node = lbrynet.rpc_node:main',
|
|
|
|
'lbrynet-rpc-node-cli = lbrynet.node_rpc_cli:main',
|
|
|
|
'lbrynet-gui = lbrynet.lbrynet_gui.gui:start_gui',
|
|
|
|
'lbrynet-lookup-hosts-for-hash = lbrynet.dht_scripts:get_hosts_for_hash_in_dht',
|
|
|
|
'lbrynet-announce_hash_to_dht = lbrynet.dht_scripts:announce_hash_to_dht',
|
|
|
|
'lbrynet-daemon = lbrynet.lbrynet_daemon.LBRYDaemon:main',
|
2016-02-29 19:25:47 +01:00
|
|
|
'stop-lbrynet-daemon = lbrynet.lbrynet_daemon.LBRYDaemon:stop']
|
2016-02-27 23:49:49 +01:00
|
|
|
|
2016-03-22 02:33:55 +01:00
|
|
|
|
2016-02-27 23:49:49 +01:00
|
|
|
if sys.platform == 'darwin':
|
|
|
|
console_scripts.append('lbrynet-daemon-status = lbrynet.lbrynet_daemon.LBRYOSXStatusBar:main')
|
|
|
|
|
2015-08-20 17:27:15 +02:00
|
|
|
|
2016-03-22 02:33:55 +01:00
|
|
|
gui_data_files = ['close2.gif', 'lbry-dark-242x80.gif', 'lbry-dark-icon.xbm', 'lbry-dark-icon.ico',
|
|
|
|
'drop_down.gif', 'show_options.gif', 'hide_options.gif', 'lbry.conf']
|
|
|
|
gui_data_paths = [os.path.join(base_dir, 'lbrynet', 'lbrynet_gui', f) for f in gui_data_files]
|
|
|
|
|
2015-08-20 17:27:15 +02:00
|
|
|
setup(name='lbrynet',
|
2016-03-22 02:33:55 +01:00
|
|
|
version='.'.join([str(x) for x in __version__]),
|
|
|
|
packages=find_packages(base_dir),
|
2016-02-23 00:21:39 +01:00
|
|
|
install_requires=['six>=1.9.0', 'pycrypto', 'twisted', 'miniupnpc', 'yapsy', 'seccure', 'python-bitcoinrpc==0.1', 'txJSON-RPC', 'requests>=2.4.2', 'unqlite==0.2.0', 'leveldb', 'lbryum'],
|
2016-02-27 23:49:49 +01:00
|
|
|
entry_points={'console_scripts': console_scripts},
|
2015-08-20 17:27:15 +02:00
|
|
|
data_files=[
|
|
|
|
('lbrynet/lbrynet_console/plugins',
|
|
|
|
[
|
2016-03-22 02:33:55 +01:00
|
|
|
os.path.join(base_dir, 'lbrynet', 'lbrynet_console', 'plugins',
|
|
|
|
'blindrepeater.yapsy-plugin')
|
2015-08-20 17:27:15 +02:00
|
|
|
]
|
|
|
|
),
|
2016-03-22 02:33:55 +01:00
|
|
|
('lbrynet/lbrynet_gui', gui_data_paths)
|
2016-02-19 06:44:08 +01:00
|
|
|
],
|
|
|
|
dependency_links=['https://github.com/lbryio/lbryum/tarball/master/#egg=lbryum'],
|
2016-03-23 03:15:07 +01:00
|
|
|
)
|