Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1115 Updated Issue : documents updated accordingly : setup.rst , ext… #1519

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions contrib/code/setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,23 @@ Setup and building

[More setup and build instructions specifically for code contributors, building
on the basics from the :ref:`Getting Started <getting-started>` section.]

.. _configure-cache:

Using Configure Cache (`configure -C`)
--------------------------------------

### Overview
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.

By using **configure cache (`-C`)**, you can store previous configuration results, reducing redundant checks and **significantly speeding up build times**.

### Benefits of `configure -C`
- **Faster rebuilds**: Skips redundant system checks, improving efficiency.
- **Improves development workflow**: Optimizes the edit-configure-build-test cycle.
- **Reduces system load**: Avoids unnecessary reconfigurations.

### How to Use `configure -C`
To enable caching, run:
```sh
./configure -C
21 changes: 21 additions & 0 deletions developer-workflow/extension-modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,27 @@ Now that we have added our extension module to the CPython source tree,
we need to update some configuration files in order to compile the CPython
project on different platforms.

-------------------------------------

.. _configure-cache:

Using Configure Cache (`configure -C`)
--------------------------------------

### Overview
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.

By using **configure cache (`-C`)**, you can store previous configuration results, reducing redundant checks and **significantly speeding up build times**.

### Benefits of `configure -C`
- **Faster rebuilds**: Skips redundant system checks, improving efficiency.
- **Improves development workflow**: Optimizes the edit-configure-build-test cycle.
- **Reduces system load**: Avoids unnecessary reconfigurations.

### How to Use `configure -C`
To enable caching, run:
```sh
./configure -C
Updating ``Modules/Setup.{bootstrap,stdlib}.in``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down