Skip to content

Latest original Ta-Lib for PyDroid3

Pre-release
Pre-release
Compare
Choose a tag to compare
@trufanov-nok trufanov-nok released this 24 Nov 18:58

This release is just to provide a sources adapted for PyDroid3 (I removed SOVERSION as phone gives no permission to create symlinks and changed default library installation subfolder from lib to lib64).
Build instructions (tested with Nokia 6):

  1. Install PyDroid 3 from Google Play.
  2. Open it and install 2 packages via Pip (install repository plugin if needed): wget, cmake
  3. Open PyDroid's terminal:
# let's make a working dir
mkdir talib
cd talib

# download the buildable ta-lib sources
wget https://github.com/trufanov-nok/ta-lib-rt/releases/download/0.6.0/libta-lib_0.6.0.PyDroid3.tar.gz

# unpack them
tar xf libta-lib_0.6.0.PyDroid3.tar.gz

# make a build dir
mkdir build
cd build

#build and install the library
cmake -DCMAKE_INSTALL_PREFIX=/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/ ..
make
make install
  1. Install via Pip packages cython and ta-lib. Or better In terminal type in
pip -v install cython
pip -v install ta-lib

I prefer the last variant of installation as it allows to track the process.
Note: It may take up to 5 min to compile wrapper and produce a lot of warnings which is ok.

  1. Type in the test python code in PyDroid 3:
import talib
print(talib.__ta_version__)

output should be

b'0.6.0-dev (Nov 24 2020 20:15:43)`
[Program finished]