From 038712f4311d45b0127dff93511c6fd6b43a1cdb Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 18 Aug 2016 00:30:57 -0400 Subject: [PATCH 1/2] install script --- packaging/osx/install_lbry_source.sh | 75 ++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 packaging/osx/install_lbry_source.sh diff --git a/packaging/osx/install_lbry_source.sh b/packaging/osx/install_lbry_source.sh new file mode 100644 index 000000000..db766f047 --- /dev/null +++ b/packaging/osx/install_lbry_source.sh @@ -0,0 +1,75 @@ +#!/bin/sh + +if [ "$EUID" -ne 0 ] + then echo "Please run as sudo" + exit +fi + +echo "**********************************" +echo "Installing LBRY and dependencies" +echo "**********************************" + +if ! xcode-select -p &>/dev/null; then + echo + echo "You need to install xcode command line tools to install lbry." + echo "A popup to do so should appear, once you're done the installer will resume" + echo + xcode-select --install &>/dev/null + while ! xcode-select -p &>/dev/null; do + sleep 1 + done + echo "Installed xcode command line tools" +else + echo "Xcode command line tools already installed..." +fi + +if ! which brew &>/dev/null; then + echo "Installing brew..." + sudo -u ${SUDO_USER} ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null &>/dev/null +else + echo "Updating brew..." + sudo -u ${SUDO_USER} brew update &>/dev/null +fi + +if ! brew list mpfr &>/dev/null; then + echo "Installing mpfr..." + sudo -u ${SUDO_USER} brew install mpfr &>/dev/null +else + echo "mpfr already installed..." +fi + +if ! brew list libmpc &>/dev/null; then + echo "Installing libmpc..." + sudo -u ${SUDO_USER} brew install libmpc &>/dev/null +else + echo "libmpc already installed..." +fi + +if ! which pip &>/dev/null; then + echo "Installing pip..." + sudo easy_install pip &>/dev/null +else + echo "pip already installed" +fi + +echo "Cloning and installing lbryum..." +git clone --depth 1 https://github.com/lbryio/lbryum.git &>/dev/null +cd lbryum +sudo python setup.py install &>/dev/null +cd .. +rm -rf lbryum &>/dev/null + +echo "Cloning and installing lbry..." +git clone --depth 1 https://github.com/lbryio/lbry.git &>/dev/null +cd lbry +sudo python setup.py install &>/dev/null +cd .. +rm -rf lbry &>/dev/null + +sudo chmod -R 755 /Library/Python/2.7/site-packages/ + +echo "**********************************" +echo "All done!" +echo "**********************************" +echo " " +echo "run 'lbrynet-daemon' to start lbry" \ No newline at end of file From c906a9571e378e754a4cec04ca0d4e4baf022caf Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 18 Aug 2016 00:31:05 -0400 Subject: [PATCH 2/2] add service identity --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1de2d1303..25e5443ef 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,8 @@ console_scripts = ['lbrynet-stdin-uploader = lbrynet.lbrynet_console.LBRYStdinUp requires = ['pycrypto', 'twisted', 'miniupnpc', 'yapsy', 'seccure', 'python-bitcoinrpc==0.1', 'txJSON-RPC', 'requests>=2.4.2', 'unqlite==0.2.0', - 'leveldb', 'lbryum', 'jsonrpc', 'simplejson', 'appdirs', 'six==1.9.0', 'base58', 'googlefinance', 'requests_futures'] + 'leveldb', 'lbryum', 'jsonrpc', 'simplejson', 'appdirs', 'six==1.9.0', 'base58', 'googlefinance', + 'requests_futures', 'service_identity'] setup(name='lbrynet', description='A decentralized media library and marketplace',