Skip to content
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

bpo-41054: Simplify resource compilation on Windows #21004

Merged
merged 2 commits into from Jun 23, 2020
Merged

bpo-41054: Simplify resource compilation on Windows #21004

merged 2 commits into from Jun 23, 2020

Conversation

nnemkin
Copy link
Contributor

@nnemkin nnemkin commented Jun 20, 2020

Remove auto-generated resource header. Pass definitions required by resource files (PYTHON_DLL_NAME and FIELD3) directly to resource compiler.

Remove unused MS_DLL_ID resource string and related dead code.

https://bugs.python.org/issue41054

Remove auto-generated resource header. Pass definitions required
by resource files (PYTHON_DLL_NAME and FIELD3) directly to resource
compiler.

Remove unused MS_DLL_ID resource string and related dead code.
@@ -80,7 +80,7 @@
</Lib>
<ResourceCompile>
<AdditionalIncludeDirectories>$(PySourcePath)PC;$(PySourcePath)Include;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>$(_DebugPreprocessorDefinition)%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>PYTHON_DLL_NAME=\"$(TargetName)$(TargetExt)\";FIELD3=$(Field3Value);$(_DebugPreprocessorDefinition)%(PreprocessorDefinitions)</PreprocessorDefinitions>
Copy link
Member

@zooba zooba Jun 22, 2020

Choose a reason for hiding this comment

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

Let's rename PYTHON_DLL_NAME to ORIGINAL_FILENAME, since that's how it's used.

@zooba
Copy link
Member

@zooba zooba commented Jun 22, 2020

I had more comments that I eventually unrolled, but since I spent 10-15 minutes figuring out that PYTHON_DLL_NAME doesn't actually refer only to the main DLL, we should save the next person the bother by renaming it.

@nnemkin
Copy link
Contributor Author

@nnemkin nnemkin commented Jun 22, 2020

I'm not sure if I should squash and rebase ot just add commits to the aging branch.

@zooba
Copy link
Member

@zooba zooba commented Jun 23, 2020

Adding commits is preferred - we squash merge and rewrite commit messages at the end. Doing it during a PR breaks all the reviews up to that point.

@zooba zooba merged commit 4efc336 into python:master Jun 23, 2020
9 checks passed
@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 23, 2020

Thanks @nnemkin for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jun 23, 2020
Remove auto-generated resource header. Pass definitions required
by resource files (ORIGINAL_FILENAME and FIELD3) directly to resource
compiler.

Remove unused MS_DLL_ID resource string and related dead code.
(cherry picked from commit 4efc336)

Co-authored-by: Nikita Nemkin <nikita@nemkin.ru>
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Jun 23, 2020

GH-21091 is a backport of this pull request to the 3.9 branch.

@nnemkin nnemkin deleted the rc_defs branch Jun 23, 2020
miss-islington added a commit that referenced this issue Jun 23, 2020
Remove auto-generated resource header. Pass definitions required
by resource files (ORIGINAL_FILENAME and FIELD3) directly to resource
compiler.

Remove unused MS_DLL_ID resource string and related dead code.
(cherry picked from commit 4efc336)

Co-authored-by: Nikita Nemkin <nikita@nemkin.ru>
fasih pushed a commit to fasih/cpython that referenced this issue Jun 29, 2020
Remove auto-generated resource header. Pass definitions required
by resource files (ORIGINAL_FILENAME and FIELD3) directly to resource
compiler.

Remove unused MS_DLL_ID resource string and related dead code.
arun-mani-j pushed a commit to arun-mani-j/cpython that referenced this issue Jul 21, 2020
Remove auto-generated resource header. Pass definitions required
by resource files (ORIGINAL_FILENAME and FIELD3) directly to resource
compiler.

Remove unused MS_DLL_ID resource string and related dead code.
chrisburr pushed a commit to chrisburr/cpython that referenced this issue Dec 9, 2020
Remove auto-generated resource header. Pass definitions required
by resource files (ORIGINAL_FILENAME and FIELD3) directly to resource
compiler.

Remove unused MS_DLL_ID resource string and related dead code.
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.

None yet

5 participants