@@ -27,27 +27,54 @@ instructions please see the :ref:`setup guide <setup>`.
27
27
git clone https://github.com/<your_username>/cpython
28
28
cd cpython
29
29
30
- 3. Build Python, on Unix and macOS use: :
30
+ 3. Build Python:
31
31
32
- ./configure --with-pydebug && make -j
32
+ .. tab :: Unix
33
33
34
- and on Windows use:
34
+ .. code-block :: shell
35
35
36
- .. code-block:: dosbatch
36
+ ./configure --with-pydebug && make -j
37
37
38
- PCbuild\build.bat -e -d
38
+ .. tab :: macOS
39
+
40
+ .. code-block :: shell
41
+
42
+ ./configure --with-pydebug && make -j
43
+
44
+ .. tab :: Windows
45
+
46
+ .. code-block :: dosbatch
47
+
48
+ PCbuild\build.bat -e -d
39
49
40
50
See also :ref: `more detailed instructions <compiling >`,
41
51
:ref: `how to install and build dependencies <build-dependencies >`,
42
52
and the platform-specific pages for :ref: `Unix <unix-compiling >`,
43
53
:ref: `macOS `, and :ref: `Windows <windows-compiling >`.
44
54
45
- 4. :ref: `Run the tests <runtests >`::
55
+ 4. :ref: `Run the tests <runtests >`:
56
+
57
+ .. tab :: Unix
58
+
59
+ .. code-block :: shell
60
+
61
+ ./python -m test -j3
62
+
63
+ .. tab :: macOS
46
64
47
- ./python -m test -j3
65
+ .. code-block :: shell
48
66
49
- On :ref:`most <mac-python.exe>` macOS systems, replace :file:`./python`
50
- with :file:`./python.exe`. On Windows, use :file:`python.bat`.
67
+ ./python.exe -m test -j3
68
+
69
+ Note: :ref: `Most <mac-python.exe >` macOS systems use
70
+ :file: `./python.exe ` in order to avoid filename conflicts with
71
+ the ``Python `` directory.
72
+
73
+ .. tab :: Windows
74
+
75
+ .. code-block :: dosbatch
76
+
77
+ .\python.bat -m test -j3
51
78
52
79
5. Create a new branch where your work for the issue will go, e.g.::
53
80
@@ -57,17 +84,25 @@ instructions please see the :ref:`setup guide <setup>`.
57
84
<https://github.com/python/cpython/issues>`_. Trivial issues (e.g. typo fixes) do
58
85
not require any issue to be created.
59
86
60
- 6. Once you fixed the issue, run the tests, and the patchcheck.
87
+ 6. Once you fixed the issue, run the tests, and the patchcheck:
88
+
89
+ .. tab :: Unix
90
+
91
+ .. code-block :: shell
92
+
93
+ make patchcheck
94
+
95
+ .. tab :: macOS
61
96
62
- On Unix and macOS use::
97
+ .. code-block :: shell
63
98
64
- make patchcheck
99
+ make patchcheck
65
100
66
- and on Windows:
101
+ .. tab :: Windows
67
102
68
- .. code-block :: dosbatch
103
+ .. code-block :: dosbatch
69
104
70
- .\python.bat Tools\patchcheck\patchcheck.py
105
+ .\python.bat Tools\patchcheck\patchcheck.py
71
106
72
107
If everything is ok, commit.
73
108
0 commit comments