This repository has been archived by the owner on Sep 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77a8445
commit cda232b
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/*.buildinfo | ||
/*.changes | ||
/*.deb | ||
/*.dsc | ||
/*.tar.xz | ||
/python3.6-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
SHELL := /bin/bash | ||
|
||
VERSION := 3.6.1-2 | ||
WORKDIR := python3.6-$(shell cut -d- -f1 <<< '$(VERSION)') | ||
|
||
.PHONY: builddeb | ||
builddeb: | ||
dget -x https://mirrors.ocf.berkeley.edu/debian/pool/main/p/python3.6/python3.6_$(VERSION).dsc | ||
cd $(WORKDIR) \ | ||
&& DEBFULLNAME='Chris Kuehl' [email protected] \ | ||
dch --local ~deb9u --distribution stretch-backports 'Backported for stretch.' \ | ||
&& dpkg-buildpackage -us -uc -sa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Python 3.6 Debian stretch backport | ||
======== | ||
|
||
Unofficial Python 3.6 backports for Debian stretch. | ||
|
||
|
||
## Usage | ||
|
||
If you just want to grab pre-built Debian packages, you can find them in the | ||
[Releases][releases] tab on GitHub. Download the ones you want, then run `sudo | ||
dpkg -i *.deb` to install them. | ||
|
||
|
||
## Building from source | ||
|
||
To build from source, clone this repo and run `make builddeb` on a machine | ||
running Debian stretch. It follows [roughly these backporting | ||
instructions][how-to-backport] in order to build a proper backport of Python | ||
3.6 on stretch. | ||
|
||
Building from source is relatively fast and is recommended for anyone who has a | ||
healthy distrust of pre-built binaries from a random internet stranger. | ||
|
||
|
||
[how-to-backport]: https://www.ocf.berkeley.edu/docs/staff/procedures/backporting-packages/ | ||
[releases]: https://github.com/chriskuehl/python3.6-debian-stretch/releases |