Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get update
- sudo apt-get install python3
- python3 is already the newest version.
- python -V
- Python 3.4.2
- $ sudo nano etc/apt/sources.list
- # add
- deb http://ftp.de.debian.org/debian experimental main
- deb http://ftp.de.debian.org/debian unstable main
- # and maybe it needs this too
- deb http://http.debian.net/debian/ jessie main contrib non-free
- $ sudo apt-get update
- $ sudo apt-get install python3.6
- $ python3.6 -V
- wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
- tar xvf Python-3.6.0.tgz
- cd Python-3.6.0
- ./configure --enable-optimizations
- make -j8
- sudo make altinstall
- python3.6
- wheezy (oldstable) (python): interactive high-level object-oriented language (default python3 version)
- 3.2.3-6: all
- jessie (stable) (python): interactive high-level object-oriented language (default python3 version)
- 3.4.2-2: amd64 arm64 armel armhf i386 mips mipsel powerpc ppc64el s390x
- stretch (testing) (python): interactive high-level object-oriented language (default python3 version)
- 3.5.1-4: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x
- sid (unstable) (python): interactive high-level object-oriented language (default python3 version)
- 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
- $ cd ~
- $ mkdir pythonroot
- $ mkdir opt
- $ mkdir app
- $ cd opt
- $ wget <python tarball>
- $ tar -xvf <python tarball>
- $ cd python-3.6
- $ ./configure --prefix="$HOME"/pythonroot
- $ make
- $ make install
- $ cd ~
- $ cd app
- $ virtualenv venv --python ~/pythonroot/bin/python
- $ . venv/bin/activate
- [venv]$ which python
- /home/<user>/pythonroot/bin/python
- dh_builddeb -a
- dpkg-deb: building package `python3.6' in `../python3.6_3.6.0~rc1-1_amd64.deb'.
- dpkg-deb: building package `python3.6-venv' in `../python3.6-venv_3.6.0~rc1-1_amd64.deb'.
- dpkg-deb: building package `libpython3.6-stdlib' in `../libpython3.6-stdlib_3.6.0~rc1-1_amd64.deb'.
- dpkg-deb: building package `python3.6-minimal' in `../python3.6-minimal_3.6.0~rc1-1_amd64.deb'.
- dpkg-deb: building package `libpython3.6-minimal' in `../libpython3.6-minimal_3.6.0~rc1-1_amd64.deb'.
- dpkg-deb: building package `libpython3.6' in `../libpython3.6_3.6.0~rc1-1_amd64.deb'.
- dpkg-deb: building package `python3.6-dev' in `../python3.6-dev_3.6.0~rc1-1_amd64.deb'.
- dpkg-deb: building package `libpython3.6-dev' in `../libpython3.6-dev_3.6.0~rc1-1_amd64.deb'.
- dpkg-deb: building package `python3.6-dbg' in `../python3.6-dbg_3.6.0~rc1-1_amd64.deb'.
- dpkg-deb: building package `libpython3.6-dbg' in `../libpython3.6-dbg_3.6.0~rc1-1_amd64.deb'.
- dpkg-genchanges >../python3.6_3.6.0~rc1-1_amd64.changes
- dpkg-genchanges: including full source code in upload
- dpkg-source --after-build python3.6-3.6.0~rc1
- dpkg-buildpackage: full upload (original source is included)
- Now running lintian...
- W: python3.6 source: newer-standards-version 3.9.8 (current is 3.9.6)
- N: 56 tags overridden (26 errors, 27 warnings, 3 info)
- Finished running lintian.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement