1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-07-02 01:16:18 +02:00
qmckl/python/manual_install_pyqmckl.sh

26 lines
494 B
Bash
Raw Normal View History

#!/bin/bash
set -x
set -e
2022-05-03 15:14:12 +02:00
# swig pre-processing
./build_pyqmckl.sh
cd src/
# compile the wrapper code
cc -c -fPIC `pkg-config --cflags qmckl` -I/usr/include/python3.8 pyqmckl_wrap.c -o pyqmckl_wrap.o
# link against the previously installed QMCkl library (as detected by pkg-config)
cc -shared pyqmckl_wrap.o `pkg-config --libs qmckl` -o _pyqmckl.so
cd ..
2022-05-03 15:14:12 +02:00
# copy the produced files into the test dir
cp src/_pyqmckl.so src/pyqmckl.py test/
2022-05-03 15:14:12 +02:00
# run tests
cd test/
python test_api.py
cd ..