Skip to content

Conversation

@ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented Sep 24, 2021

The focus here is on the output from generating frozen modules. Now we only print 3 lines when generating them. This is especially important as we freeze more modules.

https://bugs.python.org/issue45020

Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

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

Sorry, this feels too fragile. I prefer one line per generated .h file over this.

@ericsnowcurrently
Copy link
Member Author

FYI, I'm de-prioritizing (tabling) this change.


Python/frozen_modules/__hello__.h: Programs/_freeze_module Lib/__hello__.py
Programs/_freeze_module __hello__ $(srcdir)/Lib/__hello__.py $(srcdir)/Python/frozen_modules/__hello__.h
$(FROZEN_DATA)/%.h: Programs/_freeze_module
Copy link
Member

Choose a reason for hiding this comment

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

FWIW, the commands in the block below this line give me the creeps (== I've never seen such make syntax before :-).

But perhaps we can define a pattern rule that tells how to generate a frozen .h file from a Lib .py file? That won't change the output volume, but it will simplify the Makefile.

@gvanrossum
Copy link
Member

Closing so it doesn't show as open in the bpo issue.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants