Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. sudo apt-get update
  2.  
  3. sudo apt-get install python3
  4.  
  5. python3 is already the newest version.
  6.  
  7. python -V
  8.  
  9. Python 3.4.2
  10.  
  11. $ sudo nano etc/apt/sources.list
  12. # add
  13. deb http://ftp.de.debian.org/debian experimental main
  14. deb http://ftp.de.debian.org/debian unstable main
  15. # and maybe it needs this too
  16. deb http://http.debian.net/debian/ jessie main contrib non-free
  17. $ sudo apt-get update
  18. $ sudo apt-get install python3.6
  19. $ python3.6 -V
  20.  
  21. wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
  22. tar xvf Python-3.6.0.tgz
  23. cd Python-3.6.0
  24. ./configure --enable-optimizations
  25. make -j8
  26. sudo make altinstall
  27. python3.6
  28.  
  29. wheezy (oldstable) (python): interactive high-level object-oriented language (default python3 version)
  30. 3.2.3-6: all
  31. jessie (stable) (python): interactive high-level object-oriented language (default python3 version)
  32. 3.4.2-2: amd64 arm64 armel armhf i386 mips mipsel powerpc ppc64el s390x
  33. stretch (testing) (python): interactive high-level object-oriented language (default python3 version)
  34. 3.5.1-4: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x
  35. sid (unstable) (python): interactive high-level object-oriented language (default python3 version)
  36. 3.5.1-4: alpha amd64 arm64 armel armhf hppa hurd-i386 i386 kfreebsd-amd64 kfreebsd-i386 m68k mips mips64el mipsel powerpc powerpcspe ppc64 ppc64el s390x sh4 sparc64 x32
  37.  
  38. $ cd ~
  39. $ mkdir pythonroot
  40. $ mkdir opt
  41. $ mkdir app
  42. $ cd opt
  43. $ wget <python tarball>
  44. $ tar -xvf <python tarball>
  45. $ cd python-3.6
  46. $ ./configure --prefix="$HOME"/pythonroot
  47. $ make
  48. $ make install
  49. $ cd ~
  50. $ cd app
  51. $ virtualenv venv --python ~/pythonroot/bin/python
  52. $ . venv/bin/activate
  53. [venv]$ which python
  54. /home/<user>/pythonroot/bin/python
  55.  
  56. dh_builddeb -a
  57. dpkg-deb: building package `python3.6' in `../python3.6_3.6.0~rc1-1_amd64.deb'.
  58. dpkg-deb: building package `python3.6-venv' in `../python3.6-venv_3.6.0~rc1-1_amd64.deb'.
  59. dpkg-deb: building package `libpython3.6-stdlib' in `../libpython3.6-stdlib_3.6.0~rc1-1_amd64.deb'.
  60. dpkg-deb: building package `python3.6-minimal' in `../python3.6-minimal_3.6.0~rc1-1_amd64.deb'.
  61. dpkg-deb: building package `libpython3.6-minimal' in `../libpython3.6-minimal_3.6.0~rc1-1_amd64.deb'.
  62. dpkg-deb: building package `libpython3.6' in `../libpython3.6_3.6.0~rc1-1_amd64.deb'.
  63. dpkg-deb: building package `python3.6-dev' in `../python3.6-dev_3.6.0~rc1-1_amd64.deb'.
  64. dpkg-deb: building package `libpython3.6-dev' in `../libpython3.6-dev_3.6.0~rc1-1_amd64.deb'.
  65. dpkg-deb: building package `python3.6-dbg' in `../python3.6-dbg_3.6.0~rc1-1_amd64.deb'.
  66. dpkg-deb: building package `libpython3.6-dbg' in `../libpython3.6-dbg_3.6.0~rc1-1_amd64.deb'.
  67. dpkg-genchanges >../python3.6_3.6.0~rc1-1_amd64.changes
  68. dpkg-genchanges: including full source code in upload
  69. dpkg-source --after-build python3.6-3.6.0~rc1
  70. dpkg-buildpackage: full upload (original source is included)
  71. Now running lintian...
  72. W: python3.6 source: newer-standards-version 3.9.8 (current is 3.9.6)
  73. N: 56 tags overridden (26 errors, 27 warnings, 3 info)
  74. Finished running lintian.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement