Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. ./configure
  2. 237M ../python-installed
  3.  
  4. ./configure --disable-shared --enable-ipv6 --enable-loadable-sqlite-extensions --with-dbmliborder=bdb:gdbm --with-computed-gotos --without-ensurepip --with-system-expat --with-system-libmpdec --with-system-ffi CFLAGS="-g -fstack-protector-strong -Wformat -Werror=format-security -DNDEBUG -fwrapv -O3 -Wall" LDFLAGS="-Wl,-O1,-z,relro,-Bsymbolic-functions"
  5. 226M ../python-installed
  6.  
  7. # -Os, stahne binarku pythonu na 12M
  8. ./configure --disable-shared --enable-ipv6 --enable-loadable-sqlite-extensions --with-dbmliborder=bdb:gdbm --with-computed-gotos --without-ensurepip --with-system-expat --with-system-libmpdec --with-system-ffi CFLAGS="-g -fstack-protector-strong -Wformat -Werror=format-security -DNDEBUG -fwrapv -Os -Wall" LDFLAGS="-Wl,-Os,-z,relro,-Bsymbolic-functions"
  9. 188M ../python-installed
  10.  
  11. echo "Remove all unit test directories" #named 'test' or 'tests' ...
  12. find . -type d -name "test*" -print0 | xargs -0 rm -rf
  13. 115M ../python-installed/
  14.  
  15. echo "Remove all *.pyc" files
  16. find . -type f -name "*.pyc" -delete
  17. 88M
  18.  
  19. echo "Remove static python library, include directory and pkgconfig"
  20. rm -rf ../python-installed/usr/local/lib/libpython3.9.a
  21. rm -rf ../python-installed/usr/local/include/
  22. 63M ../python-installed/
  23.  
  24. echo "Remove man pages"
  25. rm -rf ../python-installed/usr/local/share/
  26. 63M ../python-installed
  27.  
  28. echo "Remove config dir" # obsahuje statickou knihovnu libpython3, zrejme se pouziva pro kompilaci externich programu, nebo modulu pythonu
  29. rm -rf ../python-installed/usr/local/lib/python3.9/config-3.9-x86_64-linux-gnu
  30. 40M ../python-installed/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement