setup script and documentation fixed for TA-Lib and MacOS
This commit is contained in:
10
setup.sh
10
setup.sh
@@ -37,7 +37,11 @@ function updateenv () {
|
||||
function install_talib () {
|
||||
curl -O -L http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
|
||||
tar zxvf ta-lib-0.4.0-src.tar.gz
|
||||
cd ta-lib && ./configure --prefix=/usr && make && sudo make install
|
||||
cd ta-lib
|
||||
sed -i.bak "s|0.00000001|0.000000000000000001 |g" src/ta_func/ta_utility.h
|
||||
./configure --prefix=/usr/local
|
||||
make
|
||||
sudo make install
|
||||
cd .. && rm -rf ./ta-lib*
|
||||
}
|
||||
|
||||
@@ -50,8 +54,8 @@ function install_macos () {
|
||||
echo "-------------------------"
|
||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||
fi
|
||||
brew install python3 wget ta-lib
|
||||
|
||||
brew install python3 wget
|
||||
install_talib
|
||||
test_and_fix_python_on_mac
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user