Skip to content

Commit

Permalink
Merge pull request #11459 from pfmoore/zipapp_docs
Browse files Browse the repository at this point in the history
Add documentation for the zipapp distribution
  • Loading branch information
pfmoore committed Sep 18, 2022
2 parents bad03ef + 7e8263d commit fbb7f0b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/html/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,34 @@ More details about this script can be found in [pypa/get-pip]'s README.

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

### Standalone zip application

```{note}
The zip application is currently experimental. We test that pip runs correctly
in this form, but it is possible that there could be issues in some situations.
We will accept bug reports in such cases, but for now the zip application should
not be used in production environments.
```

In addition to installing pip in your environment, pip is available as a
standalone [zip application](https://docs.python.org/3.11/library/zipapp.html).
This can be downloaded from <https://bootstrap.pypa.io/pip/pip.pyz>. There are
also zip applications for specific pip versions, named `pip-X.Y.Z.pyz`.

The zip application can be run using any supported version of Python:

```{pip-cli}
$ python pip.pyz --help
```

If run directly:

```{pip-cli}
$ pip.pyz --help
```

then the currently active Python interpreter will be used.

## Alternative Methods

Depending on how you installed Python, there might be other mechanisms
Expand Down
1 change: 1 addition & 0 deletions news/11459.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Document the new (experimental) zipapp distribution of pip.

0 comments on commit fbb7f0b

Please sign in to comment.