Skip to content

Remove unused size.py and refs to removed CPython files#343

Merged
hugovk merged 3 commits intopython:mainfrom
hugovk:rm-unused
Mar 10, 2026
Merged

Remove unused size.py and refs to removed CPython files#343
hugovk merged 3 commits intopython:mainfrom
hugovk:rm-unused

Conversation

@hugovk
Copy link
Member

@hugovk hugovk commented Feb 21, 2026

size.py was added in 2010 (079bd65), last had functional changes in 2013 (cf79988) and isn't used by any other release scripts.

Include/Python-ast.h last existed in 3.9, and doesn't exist in 3.10+:

Other dotfile removals:

Docs tools:

  • We used to have some vendored docs tools:
    • tools/docutils
    • tools/jinja2
    • tools/pygments
    • tools/sphinx
  • They were checked out from SVN but removed in 2014: python/cpython#f7b2f36
  • We can probably drop the venv removal, as it was created as a tempfile.TemporaryDirectory()
  • In fact, I suspect we can remove the whole not skip_docs branch of export(), as we only call it in CI via python ../release.py --export "$CPYTHON_RELEASE" --skip-docs as part of build-source. build-docs doesn't call this function, it uses the Makefile in Doc instead. This can wait for another time.

@hugovk hugovk merged commit 4ab2a27 into python:main Mar 10, 2026
17 checks passed
@hugovk hugovk deleted the rm-unused branch March 10, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant