Skip to content
Snippets Groups Projects
Commit e4293d93 authored by Recolic's avatar Recolic :house_with_garden:
Browse files

.new-pack

parent 63b54f16
No related branches found
No related tags found
No related merge requests found
__pycache__ __pycache__
apiserver apiserver
apiserver.c apiserver.c
release
set -x # verbose
set -e # exit on error
cython apiserver.py --embed
gcc apiserver.c -o apiserver $(pkg-config --cflags --libs python-3.11-embed)
# gcc apiserver.c -o apiserver $(pkg-config --cflags --libs --static python-3.11-embed) -L /usr/lib/python3.11/config-3.11-x86_64-linux-gnu/ -lm -static -static-libgcc
rm -rf release
pip install -r req.txt --prefix release --ignore-installed
wget https://raw.githubusercontent.com/Bhagyarsh/usim800/master/usim800/Sms/sms.py -O ./release/lib/python3.11/site-packages/usim800/Sms/sms.py
cp ../apiserver.py release/
pkg_path=`cd release && find . -type d -name site-packages`
echo "#/bin/bash
PYTHONPATH=$pkg_path python apiserver.py \"$@\"
" > release/entry.sh
chmod +x release/entry.sh
web.py
usim800
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment