Skip to content

Commit

Permalink
pythongh-125729: Makes the installation of the turtle module dependen…
Browse files Browse the repository at this point in the history
…t on the Tcl/Tk install option (pythonGH-126176)
  • Loading branch information
CoderTCY authored Nov 19, 2024
1 parent 29cbcbd commit 88dc84b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Makes the presence of the :mod:`turtle` module dependent on the Tcl/Tk installer option. Previously, the module was always installed but would be unusable without Tcl/Tk.
4 changes: 2 additions & 2 deletions Tools/msi/bundle/Default.wxl
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ Select Customize to review current options.</String>
<String Id="Include_docHelpLabel">Installs the Python documentation files.</String>
<String Id="Include_pipLabel">&amp;pip</String>
<String Id="Include_pipHelpLabel">Installs pip, which can download and install other Python packages.</String>
<String Id="Include_tcltkLabel">tcl/tk and &amp;IDLE</String>
<String Id="Include_tcltkHelpLabel">Installs tkinter and the IDLE development environment.</String>
<String Id="Include_tcltkLabel">Tcl/Tk, turtle and &amp;IDLE</String>
<String Id="Include_tcltkHelpLabel">Installs tkinter, turtle and the IDLE development environment.</String>
<String Id="Include_testLabel">Python &amp;test suite</String>
<String Id="Include_testHelpLabel">Installs the standard library test suite.</String>
<String Id="Include_launcherLabel">py &amp;launcher</String>
Expand Down
3 changes: 2 additions & 1 deletion Tools/msi/lib/lib.wixproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<InstallFiles Include="$(PySourcePath)Lib\**\*"
Exclude="$(PySourcePath)Lib\**\*.pyc;
$(PySourcePath)Lib\**\*.pyo;
$(PySourcePath)Lib\turtle.py;
$(PySourcePath)Lib\site-packages\README;
@(ExcludeFolders->'$(PySourcePath)%(Identity)\*');
@(ExcludeFolders->'$(PySourcePath)%(Identity)\**\*')">
Expand All @@ -32,4 +33,4 @@
</ItemGroup>

<Import Project="..\msi.targets" />
</Project>
</Project>
4 changes: 2 additions & 2 deletions Tools/msi/tcltk/tcltk.wixproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<Group>tcltk_lib</Group>
</InstallFiles>

<InstallFiles Include="$(PySourcePath)Lib\tkinter\**\*;$(PySourcePath)Lib\idlelib\**\*;$(PySourcePath)Lib\turtledemo\**\*"
<InstallFiles Include="$(PySourcePath)Lib\tkinter\**\*;$(PySourcePath)Lib\idlelib\**\*;$(PySourcePath)Lib\turtledemo\**\*;$(PySourcePath)Lib\turtle.py"
Exclude="$(PySourcePath)Lib\**\*.pyc;$(PySourcePath)Lib\**\*.pyo">
<SourceBase>$(PySourcePath)</SourceBase>
<Source>!(bindpath.src)</Source>
Expand All @@ -39,4 +39,4 @@
</ItemGroup>

<Import Project="..\msi.targets" />
</Project>
</Project>

0 comments on commit 88dc84b

Please sign in to comment.