Guest User

pyton3.8 with bz2 from source

a guest
Jun 1st, 2020
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.36 KB | None | 0 0
  1. env
  2. echo
  3. whereis python3
  4. echo
  5.  
  6.  
  7. ls -la /home/builder/.local
  8. #ls -la /usr/lib64
  9. #ls -la /usr/local/include
  10.  
  11. echo "___________________ DOWNLOAD BZ2 ___________________"
  12. curl -L https://github.com/nemequ/bzip2/releases/download/v1.0.6/bzip2-1.0.6.tar.gz -o bzip2-1.0.6.tar.gz
  13. tar -zxvf bzip2-1.0.6.tar.gz
  14. cd bzip2-1.0.6
  15. make distclean
  16. make
  17. make install PREFIX==/home/builder/.local
  18. cd ..
  19.  
  20.  
  21. echo "___________________ DOWNLOAD PYTHON 3 ___________________"
  22. wget -q --no-check-certificate https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tar.xz
  23. xz -d Python-3.8.3.tar.xz
  24. tar -xf Python-3.8.3.tar
  25. cd Python-3.8.3/
  26. export CFLAGS="-I/usr/include"
  27. export LDFLAGS="-L/usr/lib64"
  28. export LD_LIBRARY_PATH="/usr/lib64"
  29. ./configure --prefix=/home/builder/.local --enable-optimizations
  30. make && make install
  31.  
  32. cd
  33.  
  34. echo "___________________ EXECUTE ___________________"
  35.  
  36. ~/.local/bin/pip3 install --user -r requirements.txt
  37. ~/.local/bin/pip3 install --user bz2file
  38.  
  39. # Fix boolean var uppercases
  40. export DRY_RUN=${DRY_RUN^}
  41.  
  42.  
  43. ~/.local/bin/python3 oic_promotion.py  --src-tenant $SOURCE_TENANT --src-env $SOURCE_ENV  --dst-tenant $TARGET_TENANT --dst-env $TARGET_ENV  --integration-filter $OIC_INTEGRATION_ID --integration-version $OIC_INTEGRATION_VERSION  --force-update-connections=${FORCE_CONNECTION_UPDATE^}   --only-active-migration=${PROMOTE_ONLY_IF_ACTIVE^}
Add Comment
Please, Sign In to add comment