Skip to content

Conversation

@pitrou
Copy link
Member

@pitrou pitrou commented Sep 20, 2017

$(srcdir)/Lib/importlib/_bootstrap.py \
$(srcdir)/Python/importlib.h
$(srcdir)/Python/importlib.h.new
$(UPDATE_FILE) $(srcdir)/Python/importlib.h $(srcdir)/Python/importlib.h.new
Copy link
Member

Choose a reason for hiding this comment

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

It's a little bit boring to always have to repeat the full path. Why not passing a single parameter to the update script, and add ".new" to get the "new filename"?

Copy link
Member Author

@pitrou pitrou Sep 20, 2017

Choose a reason for hiding this comment

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

Because it doesn't impose a naming convention and makes it explicit which files are operated on. Also, there's a lot of boredom in Makefiles ;-)

Copy link
Member

Choose a reason for hiding this comment

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

Ok. It was just a suggestion, being explicit is fine.

Also, there's a lot of boredom in Makefiles ;-)

I will not start discussing that aspect of Makefiles, thanks.

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM.

@vstinner vstinner merged commit b091bec into python:master Sep 20, 2017
@pitrou
Copy link
Member Author

pitrou commented Sep 20, 2017

Thank you Victor!

@pitrou pitrou deleted the smart-regen-avoids-rebuild branch September 20, 2017 22:00
@miss-islington
Copy link
Contributor

Thanks @pitrou for the PR, and @Haypo for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-3797 is a backport of this pull request to the 3.6 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 28, 2017
…onGH-3678)

* bpo-31536: Avoid wholesale rebuild after `make regen-all`

* Add NEWS
(cherry picked from commit b091bec)
pitrou pushed a commit that referenced this pull request Sep 28, 2017
) (#3797)

bpo-31536: Avoid wholesale rebuild after `make regen-all`
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.

6 participants