Skip to content

gh-119696: Regenerate idle3 and pydoc3 after reconfiguring Python - #163024

Open
zanieb wants to merge 1 commit into
python:mainfrom
zanieb:zb/regenerate-script-launchers
Open

zanieb wants to merge 1 commit into
python:mainfrom
zanieb:zb/regenerate-script-launchers

Conversation

@zanieb

@zanieb zanieb commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

If a build has already generated idle3 and pydoc3, reconfiguring it with --enable-relocatable can leave both scripts with absolute shebangs. make install copies the stale scripts, which then fail when the installation moves. Make both targets depend on the generated Makefile so a change to the installation prefix or --enable-relocatable regenerates their headers.

@zanieb

zanieb commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

I noticed this during review of #162832 cc @itamaro

@itamaro itamaro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks for catching this and sending a fix!

optionally, you could add a Makefile dep also to the python-config rule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants