This is a simple tool for building Linux static binaries (x64) from Python scripts.
It uses Pyinstaller to build a dynamic binary and uses staticx to make it static.
pip install py2static
# This will generate the binary "script"
py2static script.py
It was developed and tested with single scripts using the standard python library. It may not work with more complex projects. Feel free to open an issue if you have more complex cases that would like to be supported.