Skip to content

Commit fbb7f0b

Browse files
authored
Merge pull request #11459 from pfmoore/zipapp_docs
Add documentation for the zipapp distribution
2 parents bad03ef + 7e8263d commit fbb7f0b

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

docs/html/installation.md

+28
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,34 @@ More details about this script can be found in [pypa/get-pip]'s README.
4545

4646
[pypa/get-pip]: https://github.com/pypa/get-pip
4747

48+
### Standalone zip application
49+
50+
```{note}
51+
The zip application is currently experimental. We test that pip runs correctly
52+
in this form, but it is possible that there could be issues in some situations.
53+
We will accept bug reports in such cases, but for now the zip application should
54+
not be used in production environments.
55+
```
56+
57+
In addition to installing pip in your environment, pip is available as a
58+
standalone [zip application](https://docs.python.org/3.11/library/zipapp.html).
59+
This can be downloaded from <https://bootstrap.pypa.io/pip/pip.pyz>. There are
60+
also zip applications for specific pip versions, named `pip-X.Y.Z.pyz`.
61+
62+
The zip application can be run using any supported version of Python:
63+
64+
```{pip-cli}
65+
$ python pip.pyz --help
66+
```
67+
68+
If run directly:
69+
70+
```{pip-cli}
71+
$ pip.pyz --help
72+
```
73+
74+
then the currently active Python interpreter will be used.
75+
4876
## Alternative Methods
4977

5078
Depending on how you installed Python, there might be other mechanisms

news/11459.feature.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Document the new (experimental) zipapp distribution of pip.

0 commit comments

Comments
 (0)