Skip to content

Comments

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

Open
hugovk wants to merge 3 commits intopython:mainfrom
hugovk:rm-unused
Open

Remove unused size.py and refs to removed CPython files#343
hugovk wants to merge 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.

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