Closed defencedog closed 1 year ago
I am using Python3.9 & I have installed Eigen which is located in folder $PREFIX/lib/eigen I cloned the directory the
$PREFIX/lib/eigen
cd externals rm -rf eigen ln -s $PREFIX/include/eigen3 eigen cd .. python setup.py build_ext --inplace
Success
running build_ext building 'pcsaft' extension aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fstack-protector-strong -O3 -fstack-protector-strong -O3 -I/data/data/com.termux/files/usr/include/ -fPIC -I. -I/data/data/com.termux/files/usr/include/python3.9 -c pcsaft.cpp -o build/temp.linux-aarch64-3.9/pcsaft.o In file included from pcsaft.cpp:723: ./pcsaft_electrolyte.cpp:2319:12: warning: variable 'x_ions' set but not used [-Wunused-but-set-variable] double x_ions = 0.; // overall mole fraction of ions in the system ^ ./pcsaft_electrolyte.cpp:2376:12: warning: variable 'x_ions' set but not used [-Wunused-but-set-variable] double x_ions = 0.; // overall mole fraction of ions in the system ^ pcsaft.cpp:17944:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough] CYTHON_FALLTHROUGH; ^ pcsaft.cpp:294:34: note: expanded from macro 'CYTHON_FALLTHROUGH' #define CYTHON_FALLTHROUGH [[fallthrough]] ^ pcsaft.cpp:17955:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough] CYTHON_FALLTHROUGH; ^ pcsaft.cpp:294:34: note: expanded from macro 'CYTHON_FALLTHROUGH' #define CYTHON_FALLTHROUGH [[fallthrough]] ^ pcsaft.cpp:18870:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough] CYTHON_FALLTHROUGH; ^ pcsaft.cpp:294:34: note: expanded from macro 'CYTHON_FALLTHROUGH' #define CYTHON_FALLTHROUGH [[fallthrough]] ^ pcsaft.cpp:18881:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough] CYTHON_FALLTHROUGH; ^ pcsaft.cpp:294:34: note: expanded from macro 'CYTHON_FALLTHROUGH' #define CYTHON_FALLTHROUGH [[fallthrough]] ^ 6 warnings generated. creating build/lib.linux-aarch64-3.9 aarch64-linux-android-clang++ -shared -L/data/data/com.termux/files/usr/lib -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -Wl,--no-as-needed,-landroid-support,--as-needed -L/home/builder/.termux-build/_cache/android-r25b-api-24-v0/sysroot/usr/lib -L/data/data/com.termux/files/usr/lib -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -Wl,--no-as-needed,-landroid-support,--as-needed -L/home/builder/.termux-build/_cache/android-r25b-api-24-v0/sysroot/usr/lib -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include/ build/temp.linux-aarch64-3.9/pcsaft.o -L/data/data/com.termux/files/usr/lib -lpython3.9 -o build/lib.linux-aarch64-3.9/pcsaft.cpython-39.so copying build/lib.linux-aarch64-3.9/pcsaft.cpython-39.so ->
But how do i use it (.so) in jupyter or ipython session?
Ok I got it ...after building above .so, I have to invoke pip install . from root directory
pip install .
I am using Python3.9 & I have installed Eigen which is located in folder
$PREFIX/lib/eigen
I cloned the directory theSuccess
But how do i use it (.so) in jupyter or ipython session?