summaryrefslogtreecommitdiff
path: root/PCbuild
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2021-09-30 18:38:52 -0600
committerGitHub <noreply@github.com>2021-09-30 18:38:52 -0600
commit7e5c107541726b90d3f2e6e69ef37180cf58335d (patch)
treea6f6a4000b9217be777e8f680e0ec9c2f107eaf3 /PCbuild
parentec4d917a6a68824f1895f75d113add9410283da7 (diff)
downloadcpython-git-7e5c107541726b90d3f2e6e69ef37180cf58335d.tar.gz
bpo-45020: Add more test cases for frozen modules. (gh-28664)
I've added a number of test-only modules. Some of those cases are covered by the recently frozen stdlib modules (and some will be once we add encodings back in). However, I figured we'd play it safe by having a set of modules guaranteed to be there during tests. https://bugs.python.org/issue45020
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/_freeze_module.vcxproj25
-rw-r--r--PCbuild/_freeze_module.vcxproj.filters15
2 files changed, 40 insertions, 0 deletions
diff --git a/PCbuild/_freeze_module.vcxproj b/PCbuild/_freeze_module.vcxproj
index ea6532d10d..12bdde2af8 100644
--- a/PCbuild/_freeze_module.vcxproj
+++ b/PCbuild/_freeze_module.vcxproj
@@ -305,6 +305,31 @@
<IntFile>$(IntDir)__hello__.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\__hello__.h</OutFile>
</None>
+ <None Include="..\Lib\__phello__\__init__.py">
+ <ModName>__phello__</ModName>
+ <IntFile>$(IntDir)__phello__.g.h</IntFile>
+ <OutFile>$(PySourcePath)Python\frozen_modules\__phello__.h</OutFile>
+ </None>
+ <None Include="..\Lib\__phello__\ham\__init__.py">
+ <ModName>__phello__.ham</ModName>
+ <IntFile>$(IntDir)__phello__.ham.g.h</IntFile>
+ <OutFile>$(PySourcePath)Python\frozen_modules\__phello__.ham.h</OutFile>
+ </None>
+ <None Include="..\Lib\__phello__\ham\eggs.py">
+ <ModName>__phello__.ham.eggs</ModName>
+ <IntFile>$(IntDir)__phello__.ham.eggs.g.h</IntFile>
+ <OutFile>$(PySourcePath)Python\frozen_modules\__phello__.ham.eggs.h</OutFile>
+ </None>
+ <None Include="..\Lib\__phello__\spam.py">
+ <ModName>__phello__.spam</ModName>
+ <IntFile>$(IntDir)__phello__.spam.g.h</IntFile>
+ <OutFile>$(PySourcePath)Python\frozen_modules\__phello__.spam.h</OutFile>
+ </None>
+ <None Include="..\Tools\freeze\flag.py">
+ <ModName>frozen_only</ModName>
+ <IntFile>$(IntDir)frozen_only.g.h</IntFile>
+ <OutFile>$(PySourcePath)Python\frozen_modules\frozen_only.h</OutFile>
+ </None>
<!-- END frozen modules -->
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
diff --git a/PCbuild/_freeze_module.vcxproj.filters b/PCbuild/_freeze_module.vcxproj.filters
index 4a1c90f668..5894909e0f 100644
--- a/PCbuild/_freeze_module.vcxproj.filters
+++ b/PCbuild/_freeze_module.vcxproj.filters
@@ -61,6 +61,21 @@
<None Include="..\Lib\__hello__.py">
<Filter>Python Files</Filter>
</None>
+ <None Include="..\Lib\__phello__\__init__.py">
+ <Filter>Python Files</Filter>
+ </None>
+ <None Include="..\Lib\__phello__\ham\__init__.py">
+ <Filter>Python Files</Filter>
+ </None>
+ <None Include="..\Lib\__phello__\ham\eggs.py">
+ <Filter>Python Files</Filter>
+ </None>
+ <None Include="..\Lib\__phello__\spam.py">
+ <Filter>Python Files</Filter>
+ </None>
+ <None Include="..\Tools\freeze\flag.py">
+ <Filter>Python Files</Filter>
+ </None>
<!-- END frozen modules -->
</ItemGroup>
</Project>