Repository navigation
Recommend --config-cache for configure #1547
Copy link
Copy link
Closed
Labels
topic-building pythontype-featureAdditions; New content or section neededAdditions; New content or section needed
Description
Activity
- addedtype-featureAdditions; New content or section neededAdditions; New content or section neededtype-bugEditing of existing content neededEditing of existing content needed
on May 3, 2025 It's faster but also adds another thing that can go wrong.
Ifconfig.cacheis out of date (for example, you switch compilers or use different settings), it needs to be removed.Reacted by Kirill PodoprigoraI will find a contributor during PyCon KR sprint next week.
I'm using a configure cache for many years and I never got any issue because of this cache. If the C compiler changes or if C flags (especially the optimization level) change, configure complains: I just delete the cache in this case. The error message is quite explicit and helpful.
Reacted by Hood Chatham and Petr Viktorin- addedtype-featureAdditions; New content or section neededAdditions; New content or section neededand removedtype-featureAdditions; New content or section neededAdditions; New content or section neededtype-bugEditing of existing content neededEditing of existing content needed
on Mar 3, 2026 - added 8 commits that reference this issue
on Apr 22, 2026 - added a commit that references this issue
on Apr 25, 2026 - marked Add a sentence or two about the benefits of using configure cache #1115 as a duplicate of this issue
on May 24, 2026
Metadata
Metadata
Assignees
Labels
topic-building pythontype-featureAdditions; New content or section neededAdditions; New content or section needed
Describe the enhancement or feature you would like
Using
--config-cachewithconfiguremakes it much quicker: 3s cached vs 39s without on my machine.Some example wasm commands include it, but shall we include it by default in the other relevant commands on that page, and the front page?
Describe alternatives you have considered
Status quo, builds are slower. Or only include it in the
getting-started/setup-buildingpage if there's some reason not to put in on the front page.Additional context
Not everyone knows about this option: python/cpython#133027 (comment)