@@ -14,36 +14,53 @@ Quick Start
14
14
Here are the basic steps needed to get :ref: `set up <setup >` and contribute a
15
15
patch:
16
16
17
- 1. :ref: `Get the source code <checkout >`::
17
+ 1. Set up and install dependencies.
18
+
19
+ Install :ref: `Mercurial <vcsetup >` and other dependencies.
20
+
21
+ The dependencies needed will depend on the platform you're on.
22
+ Go to :ref: `Get Setup <setup >` page for detailed information.
23
+
24
+ 2. :ref: `Get the source code <checkout >`::
18
25
19
26
hg clone https://hg.python.org/cpython
20
27
21
- See :ref:`version control setup <vcsetup>` for installing Mercurial.
22<
8000
/code>
28
23
- 2. :ref: `Build Python <compiling >`. On all platforms, install build
24
- dependencies (such as compilers). On :ref: `UNIX <unix-compiling >`
25
- (including Mac OS X)::
29
+ 3. Build Python.
30
+
31
+ Detailed information can be found :ref: `here <compiling >`.
32
+ There are different instructions for :ref: `UNIX <unix-compiling >`,
33
+ :ref: `Mac OS <MacOS >`, and :ref: `Windows <windows-compiling >`.
34
+
35
+ The command to compile on UNIX is::
36
+
37
+ ./configure
38
+ make -j2
39
+
40
+ On some Mac OS:::
26
41
27
- ./configure --with-pydebug && make -j2
42
+ CPPFLAGS="-I$(brew --prefix openssl)/include" \
43
+ LDFLAGS="-L$(brew --prefix openssl)/lib" \
44
+ ./configure --with-pydebug
28
45
29
- On :ref: ` Windows < windows-compiling >` ::
46
+ On Windows: ::
30
47
31
48
PCbuild\build.bat -e -d
32
49
33
50
If the build outputs warnings or errors, :ref: `build-dependencies ` provides
34
51
detail on standard library extensions that depend on installing third-party
35
52
libraries for some operating systems.
36
53
37
- 3 . :doc: `Run the tests <runtests >`::
54
+ 4 . :doc: `Run the tests <runtests >`::
38
55
39
- ./python -m test -j3
56
+ ./python -m test -j3
40
57
41
58
On :ref:`most <mac-python.exe>` Mac OS X systems, replace :file:`./python`
42
59
with :file:`./python.exe`. On Windows, use :file:`python.bat` or
43
60
check the :ref:`Windows instructions <win-python.exe>`. With Python 2.7,
44
61
replace ``test`` with ``test.regrtest``.
45
- 4 . Make the :doc: `patch <patch >`.
46
- 5 . Submit it to the `issue tracker `_.
62
+ 5 . Make the :doc: `patch <patch >`.
63
+ 6 . Submit it to the `issue tracker `_.
47
64
48
65
49
66
Quick Links
0 commit comments