Merge pull request #130 from lbryio/osx-command-line-install
add os x install script to replace out of date and non existent one in lbry-setup
This commit is contained in:
commit
1e5cff1d8b
2 changed files with 77 additions and 1 deletions
75
packaging/osx/install_lbry_source.sh
Normal file
75
packaging/osx/install_lbry_source.sh
Normal file
|
@ -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"
|
3
setup.py
3
setup.py
|
@ -25,7 +25,8 @@ console_scripts = ['lbrynet-stdin-uploader = lbrynet.lbrynet_console.LBRYStdinUp
|
||||||
|
|
||||||
requires = ['pycrypto', 'twisted', 'miniupnpc', 'yapsy', 'seccure',
|
requires = ['pycrypto', 'twisted', 'miniupnpc', 'yapsy', 'seccure',
|
||||||
'python-bitcoinrpc==0.1', 'txJSON-RPC', 'requests>=2.4.2', 'unqlite==0.2.0',
|
'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',
|
setup(name='lbrynet',
|
||||||
description='A decentralized media library and marketplace',
|
description='A decentralized media library and marketplace',
|
||||||
|
|
Loading…
Reference in a new issue