Skip to content

Instantly share code, notes, and snippets.

@Magicking
Created July 28, 2020 01:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Magicking/780ed265130a0c4f83dbad4c97988385 to your computer and use it in GitHub Desktop.
Save Magicking/780ed265130a0c4f83dbad4c97988385 to your computer and use it in GitHub Desktop.
nuitka deposit-cli
%> virtualenv venv
%> source venv/bin/activate
%> pip install -r requirements.txt
%> pip install nuitka
%> python3 -m nuitka --follow-imports eth2deposit/deposit.py
%> file deposit.bin
deposit.bin: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=d735055a6559231919cfd51fdbf4404eeb43149e, for GNU/Linux 3.2.0, stripped
.-~<02:59:42>~-.[~/source/gocode/src/github.com/ethereum/eth2.0-deposit-cli].magicking@emergence 2.24 176%
%> ls -l deposit.bin
-rwxr-xr-x 1 magicking magicking 11M Jul 28 02:58 deposit.bin
.-~<02:59:49>~-.[~/source/gocode/src/github.com/ethereum/eth2.0-deposit-cli].magicking@emergence 2.14 176%
%> ldd deposit.bin
linux-vdso.so.1 (0x00007ffd8f194000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007f423280f000)
libpython3.8.so.1.0 => /usr/lib/libpython3.8.so.1.0 (0x00007f4232481000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f42322ba000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f4233460000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f4232298000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f4232292000)
libutil.so.1 => /usr/lib/libutil.so.1 (0x00007f423228d000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment