Add parameters to supply `./configure` cache files

Open
#71 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
64/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
build-system, cli

Research direction

Start at the ./configure invocation and the command-line/environment argument handling. Trace how config.cache is selected for each Python 3.16 build, then verify that --configure-cache-file takes precedence over EVERY_PYTHON_CONFIGURE_CACHE_FILE and that invalid cache files produce the stated failure behavior. Done means repeated revisions can reuse a supplied cache file while users retain an easy CLI opt-out.

Written by the indexing model from the issue text.

Description

Say, --configure-cache-file and EVERY_PYTHON_CONFIGURE_CACHE_FILE.

This is mostly to speed up bisecting, where many first-seen revisions are built, and ./configure is currently being run for every single new revision without cache files. I also often find myself playing bingo with revisions, and most of the time the same config.cache would be fine. We're probably talking tens of seconds of difference.

If I have a fresh config.cache in any Python 3.16 directory, I can just supply that and it could be reused for most of the 3.16 revisions I'd want. It could happen that the cache is invalid, but then we could bail and let the user deal with it (then cli option would ideally take precedence over env var for an easy opt-out).

Would you be interested in a PR? :)

Dominant language
Python
Stars
15
Forks
3
Avg merge
1h 47m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from savannahostrowski/every-python

All issues in savannahostrowski/every-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.