Skip to content

Commit 99706cf

Browse files
authored
Merge branch 'main' into add-sections
2 parents 3a7a2a9 + c3b6c46 commit 99706cf

3 files changed

Lines changed: 38 additions & 9 deletions

File tree

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sphinx==4.0.3
22
sphinx-autobuild==0.7.1
33
sphinx-inline-tabs==2021.4.11b9
4-
git+https://github.com/python/python-docs-theme.git#egg=python-docs-theme
4+
python-docs-theme==2021.5
55
git+https://github.com/pypa/pypa-docs-theme.git#egg=pypa-docs-theme

source/guides/installing-stand-alone-command-line-tools.rst

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,21 @@ packages, and allows you to safely run the program from anywhere.
2222

2323
``pipx`` is installed with ``pip``:
2424

25-
::
25+
.. tab:: Unix/macOS
26+
27+
.. code-block:: bash
28+
29+
python3 -m pip install --user pipx
30+
31+
python3 -m pipx ensurepath # ensures the path of the CLI application directory is on your $PATH
32+
33+
.. tab:: Windows
2634

27-
$ python3 -m pip install --user pipx
28-
$ python3 -m pipx ensurepath # ensures the path of the CLI application directory is on your $PATH
35+
.. code-block:: bat
36+
37+
py -m pip install --user pipx
38+
39+
py -m pipx ensurepath
2940
3041
.. Note:: You may need to restart your terminal for the path updates to take effect.
3142

@@ -85,11 +96,20 @@ To upgrade or uninstall the package
8596

8697
``pipx`` can be upgraded or uninstalled with pip
8798

88-
::
99+
.. tab:: Unix/macOS
100+
101+
.. code-block:: bash
102+
103+
python3 -m pip install -U pipx
104+
python3 -m pip uninstall pipx
105+
106+
.. tab:: Windows
89107

90-
$ python3 -m pip install -U pipx
91-
$ python3 -m pip uninstall pipx
108+
.. code-block:: bat
92109
110+
py -m pip install -U pipx
111+
py -m pip uninstall pipx
112+
93113
``pipx`` also allows you to install and run the latest version of a cli tool
94114
in a temporary, ephemeral environment.
95115

source/tutorials/installing-packages.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,19 @@ Ensure pip, setuptools, and wheel are up to date
160160

161161
While ``pip`` alone is sufficient to install from pre-built binary archives,
162162
up to date copies of the ``setuptools`` and ``wheel`` projects are useful
163-
to ensure you can also install from source archives::
163+
to ensure you can also install from source archives:
164164

165-
python3 -m pip install --upgrade pip setuptools wheel
165+
.. tab:: Unix/macOS
166+
167+
.. code-block:: bash
168+
169+
python3 -m pip install --upgrade pip setuptools wheel
170+
171+
.. tab:: Windows
172+
173+
.. code-block:: bat
166174
175+
py -m pip install --upgrade pip setuptools wheel
167176
168177
Optionally, create a virtual environment
169178
----------------------------------------

0 commit comments

Comments
 (0)