Skip to content

Commit 394bfc4

Browse files
committed
Move pip upgrade to top.
This reverts commit 402f04b.
1 parent 33118e7 commit 394bfc4

1 file changed

Lines changed: 17 additions & 15 deletions

File tree

source/tutorials/packaging-projects.rst

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ This tutorial walks you through how to package a simple Python project. It will
55
show you how to add the necessary files and structure to create the package, how
66
to build the package, and how to upload it to the Python Package Index.
77

8+
Some of the commands require a recent version of :ref:`pip`, so start by making
9+
sure you have the latest version installed:
10+
11+
.. tab:: Unix/macOS
12+
13+
.. code-block:: bash
14+
15+
python3 -m pip install --upgrade pip
16+
17+
.. tab:: Windows
18+
19+
.. code-block:: bash
20+
21+
py -m pip install --upgrade pip
22+
823
924
A simple project
1025
----------------
@@ -498,21 +513,8 @@ https://test.pypi.org/project/example-pkg-YOUR-USERNAME-HERE
498513
Installing your newly uploaded package
499514
--------------------------------------
500515

501-
You can use :ref:`pip` to install your package and verify that it works. Make sure you have the latest version installed:
502-
503-
.. tab:: Unix/macOS
504-
505-
.. code-block:: bash
506-
507-
python3 -m pip install --upgrade pip
508-
509-
.. tab:: Windows
510-
511-
.. code-block:: bash
512-
513-
py -m pip install --upgrade pip
514-
515-
Now create a new :ref:`virtualenv` (see :doc:`/tutorials/installing-packages` for
516+
You can use :ref:`pip` to install your package and verify that it works.
517+
Create a new :ref:`virtualenv` (see :doc:`/tutorials/installing-packages` for
516518
detailed instructions) and install your package from TestPyPI:
517519

518520
.. tab:: Unix/macOS

0 commit comments

Comments
 (0)