-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Tools/freeze/winmakemakefile.py clean target should use 'del' instead of 'rm' #71753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The command for the clean target in the Windows makefile is the same as the one in the Linux one: using Should be changed to |
I think this patch makes the proper fix, changed the lines: print("\t-rm -f *.obj")
print("\t-rm -f $(target).exe") to print("\t-del /f *.obj")
print("\t-del /f $(target).exe") |
I suspect it will also need the /Q option, at least on the one with the wildcard, otherwise there will be a prompt. Though I'm not entirely clear on where this is run (nmake?) so maybe it's already suppressed. The fact that I'm not familiar with this makefile suggests it isn't needed for normal Windows builds though, and if this is only meant for Cygwin/MinGW builds then I think assuming rf availability is fine. |
It is run by nmake. This isn't Cygwin-related, it's for 'freezing' a program a la py2exe or cx_Freeze; see Tools/freeze/README. I have yet to try it without py2exe or cx_Freeze, but it's theoretically possible :) |
New changeset e96eb2bd0d5e by Steve Dower in branch '2.7': New changeset 3ffff303df95 by Steve Dower in branch '3.5': New changeset 6a2d95630a7c by Steve Dower in branch 'default': |
Committed the patch as-is. I suspect make will have a way to suppress UI anyway, but if not then we can do another patch! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: