Metainformationen zur Seite

python standalone executable

nuitka

sudo pamac install nuitka
 
python -m nuitka myprog.py           
python -m nuitka --onefile myprog.py         
python -m nuitka --onefile-tempdir myprog.py 

cython

cython -3 test.py --embed
 
python3-config --ldflags --embed
 -L/usr/lib -lpython3.10 -lcrypt -lpthread -ldl  -lutil -lm -lm 
 
python3-config --cflags --embed
-I/usr/include/python3.10 -I/usr/include/python3.10  -Wno-unused-result -Wsign-compare -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -ffat-lto-objects -DNDEBUG -g -fwrapv -O3 -Wall
#important: order of pathes are important!
gcc -I/usr/include/python3.10 -static -L /usr/lib/python3.10/config-3.10-x86_64-linux-gnu -L/usr/lib test3.c  -Wl,-Bstatic -lpython3.10 -Wl,-Bdynamic -lpthread -ldl  -lutil -lm -lm -o foo -Wl,-verbose
 
#debian
gcc -static a.c -o a.out -I/usr/include/python3.9 -lpython3.9 -lm -lutil -ldl -lz -lexpat -lpthread -lc 

pyinstaller

pyoxidizer

#need rust
#rustc --version

cx freeze