Skip to content

Commit 1055f42

Browse files
committed
Merge pull request #1494 from dstufft/add-a-note
Add a note that explains about the big binary blob at the top of get-pip...
2 parents 038ab87 + 4dc9b5c commit 1055f42

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

contrib/get-pip.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
#! /usr/bin/env python
22

3+
# Hi There!
4+
# You may be wondering what this giant blob of binary data here is, you might
5+
# even be worried that we're up to something nefarious (good for you for being
6+
# paranoid!). It is a base64 encoded bz2 stream that was stored using the
7+
# pickle module.
8+
#
9+
# Pip is a thing that installs packages, pip itself is a package that someone
10+
# might want to install, especially if they're looking to run this get-pip.py
11+
# script. Pip has a lot of code to deal with the security of installing
12+
# packages, various edge cases on various platforms, and other such sort of
13+
# "tribal knowledge" that has been encoded in it's code base. Because of this
14+
# we basically include an entire copy of pip inside this blob. We do this
15+
# because the alternatives are attempt to implement a "minipip" that probably
16+
# doesn't do things correctly and has weird edge cases, or compress pip itself
17+
# down into a single file.
18+
#
19+
# If you're wondering how this is created, the secret is
20+
# "contrib/build-installer" from the pip repository.
321
sources = """
422
QlpoOTFBWSZTWYVCtNgG3an//////////////////f////JFQAJgREZKBERAEJBEQABMZBnu8QeH
523
Pr6GZh9HQAAFAUHKEA1rNt6y7UUKyNBoGgUFNJtrFVFAKaAGhoZmO6gBj3AOg+UgpFQpVBAnXJ99

contrib/packager/template.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
#! /usr/bin/env python
22

3+
# Hi There!
4+
# You may be wondering what this giant blob of binary data here is, you might
5+
# even be worried that we're up to something nefarious (good for you for being
6+
# paranoid!). It is a base64 encoded bz2 stream that was stored using the
7+
# pickle module.
8+
#
9+
# Pip is a thing that installs packages, pip itself is a package that someone
10+
# might want to install, especially if they're looking to run this get-pip.py
11+
# script. Pip has a lot of code to deal with the security of installing
12+
# packages, various edge cases on various platforms, and other such sort of
13+
# "tribal knowledge" that has been encoded in it's code base. Because of this
14+
# we basically include an entire copy of pip inside this blob. We do this
15+
# because the alternatives are attempt to implement a "minipip" that probably
16+
# doesn't do things correctly and has weird edge cases, or compress pip itself
17+
# down into a single file.
18+
#
19+
# If you're wondering how this is created, the secret is
20+
# "contrib/build-installer" from the pip repository.
321
sources = """
422
@SOURCES@"""
523

0 commit comments

Comments
 (0)