Skip to content

Commit 7ee234c

Browse files
committed
#1115 Updated Issue : documents updated accordingly : setup.rst , extension-module.rst
1 parent 75c827a commit 7ee234c

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

contrib/code/setup.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,23 @@ Setup and building
1010

1111
[More setup and build instructions specifically for code contributors, building
1212
on the basics from the :ref:`Getting Started <getting-started>` section.]
13+
14+
.. _configure-cache:
15+
16+
Using Configure Cache (`configure -C`)
17+
--------------------------------------
18+
19+
### Overview
20+
When running `./configure`, CPython performs a series of system checks to detect platform-specific settings. These checks can be time-consuming, especially for repeated builds.
21+
22+
By using **configure cache (`-C`)**, you can store previous configuration results, reducing redundant checks and **significantly speeding up build times**.
23+
24+
### Benefits of `configure -C`
25+
- **Faster rebuilds**: Skips redundant system checks, improving efficiency.
26+
- **Improves development workflow**: Optimizes the edit-configure-build-test cycle.
27+
- **Reduces system load**: Avoids unnecessary reconfigurations.
28+
29+
### How to Use `configure -C`
30+
To enable caching, run:
31+
```sh
32+
./configure -C

developer-workflow/extension-modules.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,27 @@ Now that we have added our extension module to the CPython source tree,
275275
we need to update some configuration files in order to compile the CPython
276276
project on different platforms.
277277

278+
-------------------------------------
279+
280+
.. _configure-cache:
281+
282+
Using Configure Cache (`configure -C`)
283+
--------------------------------------
284+
285+
### Overview
286+
When running `./configure`, CPython performs a series of system checks to detect platform-specific settings. These checks can be time-consuming, especially for repeated builds.
287+
288+
By using **configure cache (`-C`)**, you can store previous configuration results, reducing redundant checks and **significantly speeding up build times**.
289+
290+
### Benefits of `configure -C`
291+
- **Faster rebuilds**: Skips redundant system checks, improving efficiency.
292+
- **Improves development workflow**: Optimizes the edit-configure-build-test cycle.
293+
- **Reduces system load**: Avoids unnecessary reconfigurations.
294+
295+
### How to Use `configure -C`
296+
To enable caching, run:
297+
```sh
298+
./configure -C
278299
Updating ``Modules/Setup.{bootstrap,stdlib}.in``
279300
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
280301

0 commit comments

Comments
 (0)